ICacheServiceFactory
Cache factory resolves cache service with given index. You can use this method for both cache source but only useful when used with Redis.
/// <summary>
/// Cache service factory
/// </summary>
public interface ICacheServiceFactory
{
/// <summary>
/// Resolves cache service
/// </summary>
/// <param name="dbIndex">Cache index</param>
ICacheService Resolve(int dbIndex = 0);
}
Last updated