Skip to main content

CacheClientWithPrefixExtensions

Assembly: ServiceStack.dll
View Source
Declaration
public static class CacheClientWithPrefixExtensions

Methods

WithPrefix(ICacheClient, String)

Decorates the ICacheClient (and its siblings) prefixing every key with the given prefix

Useful for multi-tenant environments

View Source
Declaration
public static ICacheClient WithPrefix(this ICacheClient cache, string prefix)
Returns

ServiceStack.Caching.ICacheClient

Parameters
TypeName
ServiceStack.Caching.ICacheClientcache
System.Stringprefix