Esempio n. 1
0
        public static void Store(this RedisSignal redisSignal, int expireMinutes)
        {
            var key = redisSignal.GetKey();

            PersistentStore.Store(key, redisSignal.Value, expireMinutes);
        }
Esempio n. 2
0
        /// <summary>
        /// 从Redis库中删除
        /// </summary>
        /// <param name="redisSignal"></param>
        public static void Remove(this RedisSignal redisSignal)
        {
            var key = redisSignal.GetKey();

            PersistentStore.Remove(key);
        }
Esempio n. 3
0
        /// <summary>
        /// 存储到Redis库中
        /// </summary>
        /// <param name="redisSignal"></param>
        public static void Store(this RedisSignal redisSignal)
        {
            var key = redisSignal.GetKey();

            PersistentStore.Store(key, redisSignal.Value);
        }