Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    PropertyCacheCompression(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 Source

    IsCompressed(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
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX