Table of Contents

Class CacheWriteConfig

Namespace
ToSic.Sxc.Services.Cache.Sys
Assembly
ToSic.Sxc.Services.dll

Partial Cache configuration information which is only relevant for writing to the cache.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public record CacheWriteConfig : IEquatable<CacheWriteConfig>
Inheritance
object
CacheWriteConfig
Implements

Remarks

The object itself will not be serialized or stored in the cache, but is used to specify how the cache will be set up - for example timeouts or watchers.

Any information in this object is either

  • not relevant for retrieving from the cache
  • too complex / changing to be serialized
  • would cause trouble if also cached, since it might change fairly randomly

Constructors

CacheWriteConfig(NoParamOrder, string?)

public CacheWriteConfig(NoParamOrder npo = default, string? watch = null)

Parameters

npo NoParamOrder
watch string

Fields

AdditionalParameters

public List<(IParameters Parameters, string? Names, bool CaseSensitive)> AdditionalParameters

Field Value

List<(IParameters Parameters, string Names, bool CaseSensitive)>

AdditionalValues

public List<(string Name, string Value, bool CaseSensitive)> AdditionalValues

Field Value

List<(string Name, string Value, bool CaseSensitive)>

Properties

AbsoluteExpiration

public DateTimeOffset AbsoluteExpiration { get; init; }

Property Value

DateTimeOffset

SlidingExpirationSeconds

public int SlidingExpirationSeconds { get; init; }

Property Value

int

WatchAppData

public bool WatchAppData { get; init; }

Property Value

bool

WatchAppFolder

public bool WatchAppFolder { get; init; }

Property Value

bool

WatchAppSubfolders

public bool WatchAppSubfolders { get; init; }

Property Value

bool