SPTPersistentCache
Cache
SPTPersistentCache | Cache | |
---|---|---|
- | 2 | |
1,244 | 2,977 | |
0.2% | 0.2% | |
4.0 | 6.9 | |
8 months ago | 3 months ago | |
Objective-C | Swift | |
Apache License 2.0 | NOASSERTION |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
SPTPersistentCache
We haven't tracked posts mentioning SPTPersistentCache yet.
Tracking mentions began in Dec 2020.
Cache
- Trouble building for ios device
-
SwiftUI jobs with low compensation?
For data storage, we have a caching layer that receives data from the cloud and stores it both in memory and on device. Then there is a pub model that notifies listeners when the data has been updated. it's pretty simple but works great! I like hyperoslo's implementation for cache: https://github.com/hyperoslo/Cache For units, we just build a protocol for the internet piece and provide the data locally. We cache the unit test data in a different folder on device and it all works seamlessly. I think the hardest part there was intercepting the HTTP requests and forking to the local test data. The key there was implementing a URLProtocol subclass.
What are some alternatives?
PINCache - Fast, non-deadlocking parallel object cache for iOS, tvOS and OS X
HanekeSwift - A lightweight generic cache for iOS written in Swift with extra love for images.
MGCacheManager - A delightful iOS and OS X Networking Cache Managing Class
RocketData - A caching and consistency solution for immutable models.
mattress - iOS Offline Caching for Web Content
Disk - Easily persist structs, images, and data on iOS
Dollar - A functional tool-belt for Swift Language similar to Lo-Dash or Underscore.js in Javascript
YYCache - High performance cache framework for iOS.
Carlos - A simple but flexible cache
Track - Track is a thread safe cache write by Swift. Composed of DiskCache and MemoryCache which support LRU.