Table of Contents

Class AuthorizationCacheOptions

Namespace
Excalibur.A3.Authorization
Assembly
Excalibur.A3.dll

Configures how long cached authorization data may be served.

public sealed class AuthorizationCacheOptions
Inheritance
AuthorizationCacheOptions
Inherited Members

Remarks

A user's grants and a tenant's activity-group catalogue are cached in the application-scoped distributed cache. Each entry is invalidated whenever a sync changes the data it was read from, but a request that read the previous state just before the change can still write that state to the cache just after it. An entry that keeps being read would otherwise be kept alive by those reads indefinitely.

AbsoluteExpirationRelativeToNow caps that: every entry is reloaded from the store once this long has passed since it was written, however often it is read in the meantime. It is therefore the longest a revoked grant can still authorize through the cache. Shorter values narrow that window at the cost of more store reads.

Properties

AbsoluteExpirationRelativeToNow

Gets or sets the longest a cached authorization entry is served before it is reloaded from the store.

public TimeSpan AbsoluteExpirationRelativeToNow { get; set; }

Property Value

TimeSpan

A positive duration. The default is five minutes. This is the longest a revoked grant can still authorize through the cache.