GetOrPutOptions<T> is defined in the Telligent.Evolution.Extensibility.Caching.Version1 namespace.
Definition
class GetOrPutOptions<T>
{
GetOrPutOptions();
ConsistencyLevel Consistency { get; set; }
TimeSpan? ExpiresAfter { get; set; }
Func<T,IEnumerable<string>> SecondaryKeys { get; set; }
Func<T,IEnumerable<string>> Tags { get; set; }
}
Constructors
GetOrPutOptions();
Properties
| Name | Type | Description | Default | Options |
|---|---|---|---|---|
| Consistency | ConsistencyLevel | Indicates the desired consistency level for the cached item. | Immediate | Eventual, Immediate |
| ExpiresAfter | TimeSpan? | Identifies an explicit expiration duration. If not set, the item will persist as long as it continues to be accessed. | ||
| SecondaryKeys | Func<T,IEnumerable<string>> | Identifies secondary keys to also cache the item by. Secondary keys will use the configured scope, tags, and permission configuration. | ||
| Tags | Func<T,IEnumerable<string>> | Loads tags associated to the item |