Skip to main content

CacheClientAsyncExtensions

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

Methods

AsAsync(ICacheClient)

View Source
Declaration
public static ICacheClientAsync AsAsync(this ICacheClient cache)
Returns

ServiceStack.Caching.ICacheClientAsync

Parameters
TypeName
ServiceStack.Caching.ICacheClientcache

AsSync(ICacheClientAsync)

Returns underlying wrapped sync ICacheClient or ICacheClient API if cache implements it

View Source
Declaration
public static ICacheClient AsSync(this ICacheClientAsync cache)
Returns

ServiceStack.Caching.ICacheClient

Parameters
TypeName
ServiceStack.Caching.ICacheClientAsynccache

Unwrap(ICacheClientAsync)

Returns sync ICacheClient if wrapped

View Source
Declaration
public static ICacheClient Unwrap(this ICacheClientAsync cache)
Returns

ServiceStack.Caching.ICacheClient

Parameters
TypeName
ServiceStack.Caching.ICacheClientAsynccache