Skip to content

Instance Method

set(_:to:)

Sets an encodable value into the cache. Existing values are replaced. If nil, removes value.
func set<T>(_ key: String, to value: T?) async throws where T : Encodable, T : Sendable