Skip to content

Instance Method

setex(_:toJSON:expirationInSeconds:jsonEncoder:)

Sets key to an encodable item with an expiration time.
func setex<E>(_ key: RedisKey, toJSON entity: E, expirationInSeconds expiration: Int, jsonEncoder: JSONEncoder = JSONEncoder()) -> EventLoopFuture<Void> where E : Encodable