Instance Method (Default implementation)vapor 4.114.1Vapor

set(_:to:expiresIn:)

Sets an encodable value into the cache with an expiry time. Existing values are replaced. If nil, removes value.

Cache+Concurrency.swift:16
func set<T>(_ key: String, to value: T?, expiresIn expirationTime: CacheExpirationTime?) async throws where T : Encodable, T : Sendable