Ejemplo n.º 1
0
        public string[] HMGet(string key, params string[] fields)
        {
            if (!this.IsValidFields(fields))
            {
                return(null);
            }

            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? null : UTF8String.ToStringArray(client.HMGet(key, UTF8String.ToBytesArray(fields))));
        }
Ejemplo n.º 2
0
        public string[] Hvals(string key)
        {
            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? null : UTF8String.ToStringArray(client.HVals(key)));
        }
Ejemplo n.º 3
0
        public string[] BRPop(string key, int timeOutSecs)
        {
            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? null : UTF8String.ToStringArray(client.BRPop(key, timeOutSecs)));
        }
Ejemplo n.º 4
0
        public string[] LRange(string key, int start, int end)
        {
            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? null : UTF8String.ToStringArray(client.LRange(key, start, end)));
        }