Table of Contents

Interface ICacheResult

Namespace
Arbiter.CommandQuery.Definitions
Assembly
Arbiter.CommandQuery.dll

An interface for cache expiration and cache tagging

public interface ICacheResult

Methods

AbsoluteExpiration()

Gets an absolute expiration date for the cache entry.

DateTimeOffset? AbsoluteExpiration()

Returns

DateTimeOffset?

The absolute expiration DateTimeOffset if set; otherwise null.

GetCacheKey()

Gets the cache key for this entity.

string GetCacheKey()

Returns

string

The cache key for this entity

GetCacheTag()

Gets the cache tag for this entity.

string? GetCacheTag()

Returns

string

The cache tag for this entity

IsCacheable()

Determines whether this entity is cacheable.

bool IsCacheable()

Returns

bool

true if this entity is cacheable; otherwise, false.

SlidingExpiration()

Gets how long a cache entry can be inactive (e.g. not accessed) before it will be removed.

TimeSpan? SlidingExpiration()

Returns

TimeSpan?

The sliding expiration TimeSpan if set; otherwise null.