Example #1
0
        public long LPush(string key, string[] values)
        {
            if (!this.IsValidValues(values))
            {
                return(0L);
            }
            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? 0L : client.LPush(key, UTF8String.ToBytesArray(values)));
        }
Example #2
0
        public long PrependRangeToList(string listId, string[] values)
        {
            if (!this.IsValidValues(values))
            {
                return(0L);
            }
            RedisNativeClient client = this.pool.GetRedisClient(listId);

            return((client == null) ? 0L : client.LPush(listId, UTF8String.ToBytesArray(values)));
        }
Example #3
0
        public long LPush(string key, string value)
        {
            RedisNativeClient client = this.pool.GetRedisClient(key);

            return((client == null) ? 0L : client.LPush(key, UTF8String.ToBytes(value)));
        }
Example #4
0
        public long PrependItemToList(string listId, string value)
        {
            RedisNativeClient client = this.pool.GetRedisClient(listId);

            return((client == null) ? 0L : client.LPush(listId, UTF8String.ToBytes(value)));
        }