MCPcopy
hub / github.com/dropbox/godropbox / CacheOnStorage

Struct CacheOnStorage

caching/cache_on_storage.go:10–13  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

8// performs two-phase cache invalidation; this ensures the cached data is
9// consistent with the stored data.
10type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected