peterbourgon / diskv

A disk-backed key-value store.
http://godoc.org/github.com/peterbourgon/diskv
MIT License
1.41k stars 102 forks source link

"Adding Caching" #46

Closed DannyZB closed 6 years ago

DannyZB commented 6 years ago

An in-memory caching layer is provided by combining the BasicStore functionality with a simple map structure, and keeping it up-to-date as appropriate. Since the map structure in Go is not threadsafe, it's combined with a RWMutex to provide safe concurrent access.


It is unclear from that statement if that is activated by default, and if it isn't, how is this to be implemented?

peterbourgon commented 6 years ago

Yes, it is there by default.