Skip to main content

CacheClientWithPrefixAsyncExtensions

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

Methods

WithPrefix(ICacheClientAsync, String)

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

Useful for multi-tenant environments

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

ServiceStack.Caching.ICacheClientAsync

Parameters
TypeName
ServiceStack.Caching.ICacheClientAsynccache
System.Stringprefix