AwesomeCache v3.0 Release Notes

Release Date: 2016-06-03 // over 5 years ago
  • ๐Ÿ”€ AwesomeCache 3 is designed to have a sync API, making it easy to reason about the actual contents of the cache. This decision has been made based on feedback from the community, to keep the API of AwesomeCache small and easy to use.

    ๐Ÿ”€ The internals of the cache use a concurrent dispatch queue, that syncs reads and writes for thread safety. In case a particular caching operation blocks your main thread for too long, consider offloading the read and write operations to a different thread.

    dispatch\_async(dispatch\_get\_global\_queue(DISPATCH\_QUEUE\_PRIORITY\_DEFAULT, 0)) { cache["name"] = "Alex"}
    

    Further improvements

    • โž• Added a new way to return an expired object in objectForKey: if present (#31)
    • โž• Adds a way to set the NSFileProtectionKey value on the internal NSFileManager. This may be necessary in case you observe odd behaviour when accessing the cache in the background. (#64)
    • โž• Adds a new method to get allObjects from the cache (optionally, expired objects may be queried as well)