CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Sep 2016 |
| SPMSupports SPM | ✗ |
Maintained by Francesco Colleoni - nearit.com, Alex Corlatti, Vincenzo.
| Depends on: | |
| SwiftyJSON | ~> 2.3 |
| YapDatabase | ~> 2.9 |
A wrapper for YapDatabase which can be used as a simple cache
This library is a wrapper for YapDatabase and exposed methods can be used to:
collection collections of a local databaseAll resources must implement protocol CacheResourceSerializable:
CacheResourceSerializable must expose an id: String property (get)CacheResourceSerializable must expose a dictionary: [String: AnyObject] property (get)CacheResourceSerializable protocol could be initialized with a [String: AnyObject] dictionary - the initializer is failableCacheResourceSerializable protocol uses NMJSON module. All “search-by-path queries” executed on json property of classes implementing CacheResourceSerializable will use “.” (dot) as queries’ path separator, unless other separators are specified: for example, a string value inside of a CacheResourceSerializable compliant class could be found by calling <object>.json.string("<your.string.path>").
As of version 0.3.0, NMCache does not support queries.