Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

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