Module: Perfect-Redis
extension RedisClient
func timeToExpire(key: String, callback: @escaping redisResponseCallback)
Returns the expiration in milliseconds for the indicated key.
extension RedisClient
extension RedisClient
func listPopLastAppend(sourceKey: String, destKey: String, callback: @escaping redisResponseCallback)
Pop and return the last element from the list. Append the element to the destination list.
func listPopLastAppendBlocking(sourceKey: String, destKey: String, callback: @escaping redisResponseCallback)
Pop and return the last element from the list. Append the element to the destination list.
extension RedisClient
func setRandomPop(key: String, count: Int, callback: @escaping redisResponseCallback)
Removes and returns `count` random elements of set `key`.
func setRandomPop(key: String, callback: @escaping redisResponseCallback)
Removes and returns a random element of set `key`.
func setScan(key: String, cursor: Int = 0, pattern: String? = nil, count: Int? = nil, callback: @escaping redisResponseCallback)
Scans the set `key` given the current cursor, which should start from zero.
Optionally accepts a pattern and a maximum returned value count.