/// <summary>实例化延迟队列</summary> /// <param name="redis"></param> /// <param name="key"></param> /// <param name="useAck"></param> public RedisDelayQueue(Redis redis, String key, Boolean useAck = true) : base(redis, key) { _sort = new RedisSortedSet <T>(redis, key); if (useAck) { AckKey = $"{key}:Ack"; _ack = new RedisSortedSet <T>(redis, AckKey); } }
/// <summary>实例化延迟队列</summary> /// <param name="redis"></param> /// <param name="key"></param> public RedisDelayQueue(Redis redis, String key) : base(redis, key) { _sort = new RedisSortedSet <T>(redis, key); }