Interface ICacheExpiring
Marks objects which are cache-based, and which may contain obsolete cached data.
Inherited Members
Namespace: ToSic.Eav.Caching
Assembly: ToSic.Eav.Core.dll
Syntax
[InternalApi_DoNotUse_MayChangeWithoutNotice("this is just fyi")]
public interface ICacheExpiring : ITimestamped
Methods
| Improve this Doc View SourceCacheChanged(Int64)
Detect if the cache has old data, by comparing it to a timestamp which may be newer.
This is implemented in each object, because sometimes it compares its own timestamp, sometimes that of another underlying object.
Declaration
bool CacheChanged(long newCacheTimeStamp)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | newCacheTimeStamp | New time stamp to compare with |
Returns
Type | Description |
---|---|
System.Boolean | True if the timestamps differ, false if it's the same |