Class CacheKeyScopeOptions
Configures the partition a scoped distributed cache writes into.
public sealed class CacheKeyScopeOptions
- Inheritance
-
CacheKeyScopeOptions
- Inherited Members
- Extension Methods
Remarks
Scope is an opaque string. This package attaches no meaning to it and does not know where it comes from — a host supplies a value that distinguishes one deployed application from another sharing the same cache server.
Properties
Scope
Gets or sets the partition every key written through the scoped cache is placed under.
public string Scope { get; set; }
Property Value
- string
A non-empty, non-whitespace string. There is deliberately no default: an empty scope would place two applications' entries in one keyspace, which is the condition the scoped cache exists to prevent, and a default would make that the outcome of forgetting to configure it.