Exemple #1
0
        public static bool SetList(string key, object value, int expireSeconds = -1, RedisExistence?exists = null)
        {
            key = RedisConstants.RedisPrefix + key;
            object redisValule = cs.SerializeRedisValueInternal(value);

            if (expireSeconds <= 0 && exists == null)
            {
                return(cs.ExecuteScalar(key, (c, k) => c.Value.Set(k, redisValule)) == "OK");
            }
            return(false);
        }