public RedisCacheProvider(IRedisDatabaseProvider databaseProvider, RedisCacheOptions options) { _databaseProvider = databaseProvider; }
public RedisConnectionProvider(RedisCacheOptions redisCacheOptions) { _redisCacheOptions = redisCacheOptions; }
public static IServiceCollection UseRedisCache(this IServiceCollection serviceCollection, RedisCacheOptions redisCacheOptions) { serviceCollection.AddSingleton(redisCacheOptions); serviceCollection.AddSingleton <IRedisConnectionProvider, RedisConnectionProvider>(); serviceCollection.AddSingleton <IRedisDatabaseProvider, RedisDatabaseProvider>(); serviceCollection.AddSingleton <ICacheProvider, RedisCacheProvider>(); serviceCollection.AddSingleton <ICacheMapProvider, RedisCacheMapProvider>(); return(serviceCollection); }