예제 #1
0
        public RedisCache(IRedisCahceStrategy <Key, Value> strategy, string conn)
        {
            this._strategy = strategy ?? throw new RedisCacheException(ErrorInfo.STRATEGY_NOT_ALLOWED_NULL);

            strategy.SetConnection(conn);
        }
예제 #2
0
 public RedisCache(IRedisCahceStrategy <Key, Value> strategy) : this(strategy, null)
 {
 }