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

            strategy.SetConnection(conn);
        }
Exemplo n.º 2
0
 public RedisCache(IRedisCahceStrategy <Key, Value> strategy) : this(strategy, null)
 {
 }