jcarreira / cirrus-kv

High-performance key-value store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cache Manager Remove Behavior

TylerADavis opened this issue · comments

Currently the cache manager's Remove method simply removes from the local cache. Should it remove from the remote store as well?

Additionally, there is no way at present to find the ObjectIDs in the cache other than attempting to remove them. As such, there is no simple way to reset a cache, or even a safe way to be guaranteed that the item you are removing is present. Should we implement some method that will allow us to either reset the cache to a blank slate or to find a listing of the ObjectIDs it contains?

Yes, it should call the store->remove(id).