Close this store and release any resources.
Close this store and release any resources. It is undefined what happens on get/multiGet after close
get a single key from the store.
get a single key from the store. Prefer multiGet if you are getting more than one key at a time
Get a set of keys from the store.
Get a set of keys from the store. Important: all keys in the input set are in the resulting map. If the store fails to return a value for a given key, that should be represented by a Future.exception.
Replace a set of keys at one time
Replace a set of keys at one time
Replace a value Delete is the same as put((k,None))
Replace a value Delete is the same as put((k,None))
Provides write-through caching on a store fronted by a cache.
All cache operations are best effort. i.e. a write will succeed if the key was written to backing store even when adding/updating the cached copy of the key fails.
On the other hand, any failure while writing to backing store is propagated to the client.
If invalidate flag is set, any keys that fail to write to backing store are attempted to be removed from cache, rather than having the old value still in cache.
Thread-safety is achieved using a mutex.