Exemplo n.º 1
0
        public RedisCache(string name, RedisCacheConfiguration configuration, IRedisCacheWriter redisCacheWriter)
        {
            SbAssert.NotNull(configuration, "redis 配置RedisCacheConfiguration不能为空");
            SbAssert.NotNull(redisCacheWriter, "RedisCacheWriter不能为空");

            this.Name                    = name;
            this.redisCacheWriter        = redisCacheWriter;
            this.redisCacheConfiguration = configuration;
        }
Exemplo n.º 2
0
 public RedisCacheManager(IUnitOfWork uow, IRedisCacheWriter redisCacheWriter, ISerialization serialization) : base(uow)
 {
     this.RedisCacheWriter = redisCacheWriter;
     this.Serialization    = serialization;
 }