C# Class Flatwhite.Provider.DefaultCacheStoreProvider

The default implementation of ICacheStoreProvider using private dictionaries
Inheritance: ICacheStoreProvider, IDisposable
Mostrar archivo Open project: vanthoainguyen/Flatwhite Class Usage Examples

Public Methods

Method Description
DefaultCacheStoreProvider ( ) : System

Initializes a DefaultCacheStoreProvider with default ICacheStore and IAsyncCacheStore

Dispose ( ) : void

Clear all the dictionary

GetAsyncCacheStore ( Type asyncCacheStoreType ) : IAsyncCacheStore

Get the IAsyncCacheStore

GetAsyncCacheStore ( int storeId ) : IAsyncCacheStore

Get the IAsyncCacheStore by storeId, if couldn't find it it will try to get the ICacheStore with the same id

GetCacheStore ( Type cacheStoreType ) : ICacheStore

Get the ICacheStore

GetCacheStore ( int storeId ) : ICacheStore

Get the ICacheStore

RegisterAsyncStore ( IAsyncCacheStore store ) : void

Register the IAsyncCacheStore

RegisterStore ( ICacheStore store ) : void

Register the ICacheStore

Method Details

DefaultCacheStoreProvider() public method

Initializes a DefaultCacheStoreProvider with default ICacheStore and IAsyncCacheStore
public DefaultCacheStoreProvider ( ) : System
return System

Dispose() public method

Clear all the dictionary
public Dispose ( ) : void
return void

GetAsyncCacheStore() public method

Get the IAsyncCacheStore
public GetAsyncCacheStore ( Type asyncCacheStoreType ) : IAsyncCacheStore
asyncCacheStoreType System.Type
return IAsyncCacheStore

GetAsyncCacheStore() public method

Get the IAsyncCacheStore by storeId, if couldn't find it it will try to get the ICacheStore with the same id
public GetAsyncCacheStore ( int storeId ) : IAsyncCacheStore
storeId int
return IAsyncCacheStore

GetCacheStore() public method

Get the ICacheStore
public GetCacheStore ( Type cacheStoreType ) : ICacheStore
cacheStoreType System.Type
return ICacheStore

GetCacheStore() public method

Get the ICacheStore
public GetCacheStore ( int storeId ) : ICacheStore
storeId int
return ICacheStore

RegisterAsyncStore() public method

Register the IAsyncCacheStore
public RegisterAsyncStore ( IAsyncCacheStore store ) : void
store IAsyncCacheStore
return void

RegisterStore() public method

Register the ICacheStore
public RegisterStore ( ICacheStore store ) : void
store ICacheStore
return void