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