Skip to content

Instance Method

get(_:as:)

Gets a decodable value from the cache. Returns nil if not found.
func get<T>(_ key: String, as type: T.Type) async throws -> T? where T : Decodable, T : Sendable