Skip to content

4.0.0

Compare
Choose a tag to compare
@onmyway133 onmyway133 released this 20 Sep 10:31
· 260 commits to master since this release
  • Update to Swift 4 with Codable support 🎉
  • Work with Swift 4 Codable. Anything conforming to Codable will be saved and loaded easily by Storage.
  • Disk storage by default. Optionally using memory storage to enable hybrid.
  • Many options via DiskConfig and MemoryConfig.
  • Support expiry and clean up of expired objects.
  • Thread safe. Operations can be accessed from any queue.
  • Sync by default. Also support Async APIs.
  • Store images via ImageWrapper.
  • Extensive unit test coverage and great documentation.
  • iOS, tvOS and macOS support.

⚠️ Changes from v3 -> v4 ⚠️

  • You now work with Storage most of the time.
  • HybridCache was removed. Storage can be configured with DiskConfig and MemoryConfig. If you don't specify MemoryConfig, then only disk cache is used.
  • SpecializedCache was removed. You can just use Storage
  • Cacheable and Coding was removed. You need to conform to Swift 4 Codable to take advantage of the auto serializing/deserializing
  • CacheArray can be replaced with [SomeClass].self