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; }
public RedisCacheManager(IUnitOfWork uow, IRedisCacheWriter redisCacheWriter, ISerialization serialization) : base(uow) { this.RedisCacheWriter = redisCacheWriter; this.Serialization = serialization; }