Open Source Stories: From Cachable to Generic Storage in Cache
Published in
10 min readJun 15, 2018
Table of Contents
- Cache
- Cachable
- Async
- JSON
- Codable in Swift 4
- Chain of responsibility
- What is TypeWrapper?
- StorageAware protocol
- Sync and Async
- But image does not conform to Codable
- Working around
- How about Any?
- How about Data Convertible?
- How about Data producer?
- Generic Storage
- Transforming type
- StorageAware
- Transformer
- Transform functions
- Where to go from here
We have been doing open source for a while, you may have met some of our work on GitHub or read some of our stories. We don’t try to reinvent the wheel, but there are many components we need specifically for our workflow, or things that need to be customised for the apps we are building. So we built many frameworks and apps. And as we are using them in our production apps, we think it might be a good idea to share them with the world. This is a win win situation…