Exemplo n.º 1
0
        private RedisValue ToRedisValue(TCacheValue value)
        {
            if (_valueConverter is IRedisValueConverter <TCacheValue> typedConverter)
            {
                return(typedConverter.ToRedisValue(value));
            }

            return(_valueConverter.ToRedisValue(value));
        }
        private RedisValue ToRedisValue(TCacheValue value)
        {
            var typedConverter = _valueConverter as IRedisValueConverter <TCacheValue>;

            if (typedConverter != null)
            {
                return(typedConverter.ToRedisValue(value));
            }

            return(_valueConverter.ToRedisValue(value));
        }