Returns the cache key under which the current object should be stored.
Namespace:
EPiServer.Common.CacheAssembly: EPiServer.Common.Cache (in EPiServer.Common.Cache.dll) Version: 4.1.517.380
Syntax
| C# |
|---|
string[] CacheKey { get; } |
Remarks
Implementing the ICacheable interface enables the cache subsystem implemented by CacheHandler to automatically store an object under its intended cache key without specifying it explicitly at the time of the store.
When implemented by a collection and the elements contained in the collection, it allows the cache system to automatically track dependencies from the contained items to the collection. This way, the collection gets invalidated when an item within the collection is invalidated.