Ejemplo n.º 1
0
        public IList <Value> StringGet <Key, Value>(int dataBaseIndex, HashSet <Key> keys)
        {
            var           redisKeys = RedisValueKeyHelper.ToKeys(keys);
            var           data      = _redisRepository.StringGet(dataBaseIndex, redisKeys);
            IList <Value> results   = new List <Value>();

            for (var i = 0; i < data.Length; i++)
            {
                results.Add(Utils.JsonPase.Deserialize <Value>(data[i]));
            }
            return(results);
        }
Ejemplo n.º 2
0
        public void Delete <K>(int dataBaseIndex, HashSet <K> keys)
        {
            RedisKey[] keyValues = RedisValueKeyHelper.ToKeys(keys);

            _redisRepository.Delete(dataBaseIndex, keyValues);
        }