public RedisCacheProvider(RedisDbLink database, RedisOptions options) { _database = database; _options = options; }
public static IServiceCollection AddRedisService(this IServiceCollection services, RedisOptions options) { if (services == null) { throw new ArgumentNullException(nameof(services)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(services.Configure(options.CreateCopyAction()) .AddSingleton <IRedisService, RedisService>()); }
public RedisConfigurationOptionsBuilder(RedisOptions options) { _options = options; }