-
Notifications
You must be signed in to change notification settings - Fork 0
Home
smakus edited this page Sep 18, 2020
·
2 revisions
This is a simple cache service written in swift that will cache (including de/serialization to disk and time to live (ttl)) any object that conforms to NSObject and NSSecureCoding, or Codable. UIImage conforms to NSObject and NSSecureCoding, so this cache service can function as an image cache.
See the ReadMe in the Code for usage and sample object conformance.
The cache service maintains two separate caches in memory and will serialize to the iOS app's cache directory, in two separate files. This is abstracted from the general usage.