public RedisCache(IRedisCahceStrategy <Key, Value> strategy, string conn) { this._strategy = strategy ?? throw new RedisCacheException(ErrorInfo.STRATEGY_NOT_ALLOWED_NULL); strategy.SetConnection(conn); }
public RedisCache(IRedisCahceStrategy <Key, Value> strategy) : this(strategy, null) { }