KeyPrefix
Gets or sets the prefix for the key of all Redis items created by the RedisCachingBackend. The default value is cache
.
Declaration
public string? KeyPrefix { get; init; }
Property Value
Type | Description |
---|---|
string |
Remarks
It is a good practice to include the version of your application in the key prefix. In the likely situation where several versions of the application are running simultaneously, having a distinct KeyPrefix can avoid deserialization issues when one cached item is serialized with one version but deserialized with a different version.