Protocol
Cache
Codable key-value pair cache.
protocol Cache : Sendable
Topics
Instance Methods
func delete(String) async throwsfunc get<T>(String) async throws -> T?Gets a decodable value from the cache. Returnsnilif not found.func get<T>(String, as: T.Type) async throws -> T?Gets a decodable value from the cache. Returnsnilif not found.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.
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype