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); }
public void Delete <K>(int dataBaseIndex, HashSet <K> keys) { RedisKey[] keyValues = RedisValueKeyHelper.ToKeys(keys); _redisRepository.Delete(dataBaseIndex, keyValues); }