MetalamaAPI documentationPatterns APIMetalama.​Patterns.​Caching.​Backends.​RedisRedis­Caching­Backend­ConfigurationKey­Prefix
Open sandboxFocus

RedisCachingBackendConfiguration.KeyPrefix Property

KeyPrefix

Gets or sets the prefix for the key of all Redis items created by the Metalama.Patterns.Caching.Backends.Redis.RedisCachingBackend. The default value is cache.

Declaration
public string KeyPrefix { get; set; }
Property Value
Type Description
System.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.