Getting started
Check requirements, add the package, create a cache, and make the first read.
Read documentationDocumentation
SwiftStash has a narrow API. The guide covers installation, memory caches, disk persistence, and the eviction methods that change cache state.
Check requirements, add the package, create a cache, and make the first read.
Read documentationUse MemoryStorageEngine when values should last only as long as the cache actor.
Read the examplePersist Codable data with JSON or bring your own DiskStorageSerializer.
Read the exampleCompare FIFO, LIFO, and LRU, then call eviction at the point your app chooses.
Read about evictionCopy from independent executable Swift packages in the repository.
Open examplesGenerated documentation for public cache, storage, serializer, and key types.
Open API reference