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(long)
Detect if the cache has newer data. It's called using the TimeStamp of the dependent object which may still have old data.
Declaration
bool CacheChanged(long dependentTimeStamp)
Parameters
Type | Name | Description |
---|---|---|
long | dependentTimeStamp | New time stamp of a dependent object, which could have an older timestamp. |
Returns
Type | Description |
---|---|
bool | True if the timestamps differ, false if it's the same |
Remarks
This is implemented in each object, because sometimes it compares its own timestamp, sometimes that of another underlying object.