Table of Contents

Class CacheKeyAttribute

Namespace
Apizr.Caching.Attributes
Assembly
Apizr.dll

The decorated parameter will be used as cache key

[AttributeUsage(AttributeTargets.Parameter)]
public class CacheKeyAttribute : Attribute, _Attribute
Inheritance
CacheKeyAttribute
Implements
Inherited Members

Constructors

CacheKeyAttribute()

The decorated parameter will be used as cache key

public CacheKeyAttribute()

CacheKeyAttribute(params string[])

If you decorate a complex type as cache key, you may want to provide its properties to include by name or to override its ToString() method. Otherwise, Apizr will take all its non-null properties.

public CacheKeyAttribute(params string[] propertyNames)

Parameters

propertyNames string[]

Properties to include as cache key (default: all non-null properties).

Properties

PropertyNames

Properties of to include as cache key (default: all non-null properties).

public string[] PropertyNames { get; }

Property Value

string[]