Class PropertyCacheCompression
Compresses property data based on config
Inheritance
object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public class PropertyCacheCompression : IPropertyCacheCompression
Constructors
View SourcePropertyCacheCompression(IPropertyCacheCompressionOptions, IReadOnlyDictionary<int, IContentTypeComposition>, PropertyEditorCollection, ConcurrentDictionary<(int, string, bool), bool>)
Declaration
public PropertyCacheCompression(IPropertyCacheCompressionOptions compressionOptions, IReadOnlyDictionary<int, IContentTypeComposition> contentTypes, PropertyEditorCollection propertyEditors, ConcurrentDictionary<(int, string, bool), bool> compressedStoragePropertyEditorCache)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyCacheCompressionOptions | compressionOptions | |
| IReadOnlyDictionary<int, IContentTypeComposition> | contentTypes | |
| PropertyEditorCollection | propertyEditors | |
| ConcurrentDictionary<(int, string, bool), bool> | compressedStoragePropertyEditorCache |
Methods
View SourceIsCompressed(IReadOnlyContentBase, string, bool)
Whether a property on the content is/should be compressed
Declaration
public bool IsCompressed(IReadOnlyContentBase content, string alias, bool published)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyContentBase | content | The content |
| string | alias | |
| bool | published | Whether this content is the published version |
Returns
| Type | Description |
|---|---|
| bool |