A storage implementation where a cache is layered on top of a storage. This implementation DOES NOT ensure data consistent between cache and storage when setting items. NOTE: Dropbox internally uses a different caching implementation which performs two-phase cache invalidation; this ensures the c
| 8 | // performs two-phase cache invalidation; this ensures the cached data is |
| 9 | // consistent with the stored data. |
| 10 | type CacheOnStorage struct { |
| 11 | cache Storage |
| 12 | storage Storage |
| 13 | } |
| 14 | |
| 15 | // This returns a CacheOnStorage, which adds a cache layer on top of the |
| 16 | // storage. |
nothing calls this directly
no outgoing calls
no test coverage detected