Cache
Cache copied to clipboard
:package: Nothing but Cache.
Update Cache.podspec
On 'MemoryStorage' class NSCache is created. How do I set the cost while adding the object? The totalCostLimit is passed to the NSCache eventually but since we cannot set the...
``` /// Initialize storage with configuration options. /// /// - Parameters: /// - diskConfig: Configuration for disk storage /// - memoryConfig: *Optional*. Pass config if you want memory cache ///...
Added `any` to each protocols to resolve `existential-any` build errors on Swift 6. https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md
hi I discovered that existsObject is doing a lot (too much) to return just a Bool. It checks the entry, decodes the object, etc... So if I use the cache...
How should I set up a custom file name? Instead of md5
To prevent NSCache from purging its memory when an app is backgrounded, one must use `NSDiscardableContent`
let diskConfig = DiskConfig(name: "Floppy") let memoryConfig = MemoryConfig(expiry: .never) let storage = try? Storage( diskConfig: diskConfig, memoryConfig: memoryConfig, fileManager: FileManager.default, transformer: TransformerFactory.forData() ) let user2 = User(firstName: "J222ohdsdsdn", lastName:...
Adds workflow to the repository, now whenever there is an update all frameworks will be built and subsequently tested. Test example: https://github.com/lucasromanomr/Cache/pull/3 - update cocoapods version - update Swift version...