Table of Contents

Struct WritePolicy

Namespace
The.Caching.Policy
Assembly
Instagile.dll

For an entity type, decide how cache entries should be stored.

public readonly struct WritePolicy
Inherited Members

Properties

Client

Reference data is stored on disk and master data is stored in memory, except for entities containing BLOBs.

public static WritePolicy Client { get; }

Property Value

WritePolicy

Disabled

No entries are stored, disabling the cache.

public static WritePolicy Disabled { get; }

Property Value

WritePolicy

Server

All cache entries are stored in memory, except for entities containing BLOBs.

public static WritePolicy Server { get; }

Property Value

WritePolicy

Methods

Custom(Func<IEntityInfo, WriteOutcome>)

Application-specific storage determination.

public static WritePolicy Custom(Func<IEntityInfo, WriteOutcome> func)

Parameters

func Func<IEntityInfo, WriteOutcome>

Returns

WritePolicy

Operators

implicit operator WritePolicy(Func<IEntityInfo, WriteOutcome>)

public static implicit operator WritePolicy(Func<IEntityInfo, WriteOutcome> func)

Parameters

func Func<IEntityInfo, WriteOutcome>

Returns

WritePolicy