Local cache is an interface representation of the local cache of a persistent storage system
| 170 | |
| 171 | // Local cache is an interface representation of the local cache of a persistent storage system |
| 172 | type LocalCache interface { |
| 173 | // Get uses a []byte key to return the Value corresponding to the key |
| 174 | Get(key []byte) (rval []byte, rerr error) |
| 175 | // GetWithLockHeld uses a []byte key to return the Value corresponding to the key with a mutex lock held |
| 176 | GetWithLockHeld(key []byte) (rval []byte, rerr error) |
| 177 | Find(prefix []byte, filter func(val []byte) bool) (uint64, error) |
| 178 | } |
| 179 | |
| 180 | // CacheType is an interface representation of the cache of a persistent storage system |
| 181 | type CacheType interface { |
nothing calls this directly
no outgoing calls
no test coverage detected