peterbourgon / diskv

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

Add Cache Layer .. where? #58

Closed ArjunDhar closed 4 years ago

ArjunDhar commented 4 years ago

Hi, the root docs say "Add a Cache layer" but none of the code and examples I could access have any implementation of the mentioned concept.

Sorry this isnt an issue and more a question, but I could not find any other Fourm to ask this either. thanks

peterbourgon commented 4 years ago

The cache is just part of the Diskv structure. You can control how big it is with CacheSizeMax.