[%siteTitle%]
Search Results for

    [%custom-skipDocumentationFor%]
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework.App SystemLibrary.Common.Framework.App.dll

    Add any OutputCachePolicy to the OutputCache attribute in the 'PolicyName' property

    Requires framework option UseControllers or UseMvc to be true

    OutputCachePolicy

    public static class OutputCachePolicy

    Inheritance
    object
    OutputCachePolicy
    Examples
    Arguments
    X

    Fields

    Cache into two categories, one for authenticated and one for unauthenticated users

    public const string CacheAuthenticated = "slcf__CacheAuthenticatedPolicy"

    X
    Field Value
    Type Description
    string

    Cache based on all roles the current user have, concatinated as a one cache key string

    public const string CacheRoles = "slcf__CacheRolesPolicy"

    X
    Field Value
    Type Description
    string

    Cache based on common claims that most often exists (sub, phone, email, id) on the user identity

    public const string CacheUser = "slcf__CacheUserPolicy"

    X
    Field Value
    Type Description
    string

    Use the standard 'OutputCache' with optional tags to skip caching for admins or authenticated users:

    skipWhenAuthenticated=true

    skipWhenAdmin=true

    NOTE: This 'Cache Policy' is a placeholder for documentation purposes and specifies additional tags supported by this framework for the sealed class 'OutputCacheAttribute' from Microsoft.
    Remarks
    X

    Requires framework option UseControllers or UseMvc to be true

    public const string OutputCacheTags = "slcf__NoPolicyRegistered"

    X
    Field Value
    Type Description
    string

    }

    In This Article
    Package: nuget
    Source: github
    Website: [%footerSiteTitle%]