Instance Method
set(_:to:expiresIn:)
Sets an encodable value into the cache with an expiry time. Existing values are replaced. If
nil, removes value.func set<T>(_ key: String, to value: T?, expiresIn expirationTime: CacheExpirationTime?) -> EventLoopFuture<Void> where T : Encodable
Default Implementations
Cache Implementations
func set<T>(String, to: T?, expiresIn: CacheExpirationTime?) -> EventLoopFuture<Void>Sets an encodable value into the cache with an expiry time. Existing values are replaced. Ifnil, removes value.func set<T>(String, to: T?, expiresIn: CacheExpirationTime?) async throwsSets an encodable value into the cache with an expiry time. Existing values are replaced. Ifnil, removes value.