Class CacheManager

public

The CacheManager wraps a Cache enforcing that only the public API surface area is exposed.

Hence, it is the value of Store.cache, wrapping the cache instance returned by Store.createCache.

It handles translating between cache versions when necessary, for instance when a Store is configured to use both a v1 and a v2 cache depending on some heuristic.

Starting with the v2 spec, the cache is designed such that it must be implemented as a singleton.