Table of Contents

Interface ICacheExpiring

Namespace
ToSic.Eav.Caching
Assembly
ToSic.Eav.Core.dll

Marks objects which are cache-based, and which may contain obsolete cached data.

[InternalApi_DoNotUse_MayChangeWithoutNotice("this is just fyi")]
public interface ICacheExpiring : ITimestamped
Inherited Members

Methods

CacheChanged(long)

Detect if the cache has newer data. It's called using the TimeStamp of the dependent object which may still have old data.

bool CacheChanged(long dependentTimeStamp)

Parameters

dependentTimeStamp long

New time stamp of a dependent object, which could have an older timestamp.

Returns

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.