+{"kind":"symbol","primaryContentSections":[{"declarations":[{"languages":["swift"],"tokens":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Cache","kind":"identifier"},{"text":" : ","kind":"text"},{"preciseIdentifier":"s:ScA","text":"Actor","kind":"typeIdentifier"}],"platforms":["iOS"]}],"kind":"declarations"},{"content":[{"level":2,"anchor":"overview","type":"heading","text":"Overview"},{"inlineContent":[{"text":"The ","type":"text"},{"type":"codeVoice","code":"Cache"},{"text":" protocol provides a basic interface for storing and retrieving values","type":"text"},{"text":" ","type":"text"},{"text":"with an associated key. It inherits from ","type":"text"},{"type":"codeVoice","code":"Actor"},{"text":" to ensure thread safety.","type":"text"}],"type":"paragraph"}],"kind":"content"}],"relationshipsSections":[{"title":"Inherits From","identifiers":["doc:\/\/cachekit.CacheKit\/s8SendableP","doc:\/\/cachekit.CacheKit\/ScA"],"type":"inheritsFrom","kind":"relationships"},{"title":"Inherited By","identifiers":["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/NSCacheType"],"type":"inheritedBy","kind":"relationships"},{"title":"Conforming Types","identifiers":["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/DiskCache"],"type":"conformingTypes","kind":"relationships"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/cachekit\/cache"]}],"hierarchy":{"paths":[["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit"]]},"sections":[],"identifier":{"url":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache","interfaceLanguage":"swift"},"schemaVersion":{"major":0,"minor":3,"patch":0},"abstract":[{"type":"text","text":"A protocol that defines a thread-safe caching mechanism with expiration support."}],"topicSections":[{"generated":true,"title":"Associated Types","identifiers":["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/V"],"anchor":"Associated-Types"},{"generated":true,"title":"Instance Properties","identifiers":["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/expirationInterval"],"anchor":"Instance-Properties"},{"generated":true,"title":"Instance Methods","identifiers":["doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/removeAllValues()","doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/removeValue(forKey:)","doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/setValue(_:forKey:)","doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/value(forKey:)"],"anchor":"Instance-Methods"}],"metadata":{"navigatorTitle":[{"text":"Cache","kind":"identifier"}],"role":"symbol","externalID":"s:8CacheKit0A0P","modules":[{"name":"CacheKit"}],"fragments":[{"text":"protocol","kind":"keyword"},{"text":" ","kind":"text"},{"text":"Cache","kind":"identifier"}],"symbolKind":"protocol","roleHeading":"Protocol","title":"Cache"},"references":{"doc://cachekit.CacheKit/documentation/CacheKit/NSCacheType":{"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"NSCacheType"}],"type":"topic","navigatorTitle":[{"kind":"identifier","text":"NSCacheType"}],"role":"symbol","url":"\/documentation\/cachekit\/nscachetype","abstract":[{"text":"A protocol that extends Cache to provide NSCache-specific functionality.","type":"text"}],"title":"NSCacheType","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/NSCacheType","kind":"symbol"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/removeAllValues()":{"defaultImplementations":1,"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"removeAllValues"},{"kind":"text","text":"()"}],"title":"removeAllValues()","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/removeAllValues()","role":"symbol","abstract":[{"type":"text","text":"Removes all values from the cache."}],"type":"topic","kind":"symbol","url":"\/documentation\/cachekit\/cache\/removeallvalues()","required":true},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/removeValue(forKey:)":{"url":"\/documentation\/cachekit\/cache\/removevalue(forkey:)","defaultImplementations":1,"abstract":[{"type":"text","text":"Removes the value associated with the specified key from the cache."}],"title":"removeValue(forKey:)","type":"topic","required":true,"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"removeValue","kind":"identifier"},{"text":"(","kind":"text"},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/removeValue(forKey:)","kind":"symbol"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/value(forKey:)":{"title":"value(forKey:)","required":true,"kind":"symbol","type":"topic","role":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"value","kind":"identifier"},{"text":"(","kind":"text"},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":") -> ","kind":"text"},{"preciseIdentifier":"s:8CacheKit0A0P1VQa","text":"V","kind":"typeIdentifier"},{"text":"?","kind":"text"}],"defaultImplementations":1,"identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/value(forKey:)","abstract":[{"type":"text","text":"Retrieves a value from the cache for the specified key."}],"url":"\/documentation\/cachekit\/cache\/value(forkey:)"},"doc://cachekit.CacheKit/documentation/CacheKit/DiskCache":{"url":"\/documentation\/cachekit\/diskcache","abstract":[{"text":"A disk-based cache implementation that persists values to the filesystem.","type":"text"}],"fragments":[{"text":"actor","kind":"keyword"},{"text":" ","kind":"text"},{"text":"DiskCache","kind":"identifier"}],"title":"DiskCache","kind":"symbol","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/DiskCache","role":"symbol","navigatorTitle":[{"text":"DiskCache","kind":"identifier"}],"type":"topic"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache":{"abstract":[{"text":"A protocol that defines a thread-safe caching mechanism with expiration support.","type":"text"}],"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Cache"}],"kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"Cache"}],"type":"topic","role":"symbol","url":"\/documentation\/cachekit\/cache","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache","title":"Cache"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/V":{"required":true,"url":"\/documentation\/cachekit\/cache\/v","kind":"symbol","fragments":[{"text":"associatedtype","kind":"keyword"},{"text":" ","kind":"text"},{"text":"V","kind":"identifier"}],"role":"symbol","type":"topic","abstract":[{"text":"The type of value that can be stored in the cache.","type":"text"}],"title":"V","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/V"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/setValue(_:forKey:)":{"role":"symbol","url":"\/documentation\/cachekit\/cache\/setvalue(_:forkey:)","required":true,"identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/setValue(_:forKey:)","defaultImplementations":1,"kind":"symbol","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"setValue","kind":"identifier"},{"text":"(","kind":"text"},{"preciseIdentifier":"s:8CacheKit0A0P1VQa","text":"V","kind":"typeIdentifier"},{"text":"?, ","kind":"text"},{"text":"forKey","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":")","kind":"text"}],"type":"topic","abstract":[{"type":"text","text":"Stores a value in the cache for the specified key."}],"title":"setValue(_:forKey:)"},"doc://cachekit.CacheKit/s8SendableP":{"identifier":"doc:\/\/cachekit.CacheKit\/s8SendableP","title":"Swift.Sendable","type":"unresolvable"},"doc://cachekit.CacheKit/documentation/CacheKit/Cache/expirationInterval":{"title":"expirationInterval","role":"symbol","url":"\/documentation\/cachekit\/cache\/expirationinterval","required":true,"fragments":[{"text":"var","kind":"keyword"},{"text":" ","kind":"text"},{"text":"expirationInterval","kind":"identifier"},{"text":": ","kind":"text"},{"text":"TimeInterval","kind":"typeIdentifier","preciseIdentifier":"c:@T@NSTimeInterval"}],"abstract":[{"type":"text","text":"The time interval after which cached values expire."}],"type":"topic","identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit\/Cache\/expirationInterval","kind":"symbol"},"doc://cachekit.CacheKit/ScA":{"identifier":"doc:\/\/cachekit.CacheKit\/ScA","title":"_Concurrency.Actor","type":"unresolvable"},"doc://cachekit.CacheKit/documentation/CacheKit":{"abstract":[],"identifier":"doc:\/\/cachekit.CacheKit\/documentation\/CacheKit","role":"collection","type":"topic","kind":"symbol","title":"CacheKit","url":"\/documentation\/cachekit"}}}
0 commit comments