Extended Protocol
RedisClient
extension RedisClient
Topics
Instance Methods
exists(_:)Checks the existence of the provided keys in the database.expire(_:after:)Sets a timeout on key. After the timeout has expired, the key will automatically be deleted.get(_:asJSON:jsonDecoder:)Gets the provided key as a decodable type.pttl(_:)Returns the remaining time-to-live (in milliseconds) of the provided key.set(_:toJSON:jsonEncoder:)Sets key to an encodable item.setex(_:toJSON:expirationInSeconds:jsonEncoder:)Sets key to an encodable item with an expiration time.ttl(_:)Returns the remaining time-to-live (in seconds) of the provided key.