Exemplo n.º 1
0
 public RedisCacheProvider(RedisDbLink database, RedisOptions options)
 {
     _database = database;
     _options  = options;
 }
Exemplo n.º 2
0
        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;
 }