go-redis / cache

Cache library with Redis backend for Golang
https://redis.uptrace.dev/guide/go-redis-cache.html
BSD 2-Clause "Simplified" License
757 stars 95 forks source link

Improve local cache #101

Open peczenyj opened 1 year ago

peczenyj commented 1 year ago

small improvements on local lfu cache

  1. we use a thread safe version of lfu cache
  2. we keep all parameters immutable to remove the mutex
  3. we add some funcional options to customize or help testing
  4. we improve docs
  5. etc
peczenyj commented 1 year ago

This PR includes the commit on #100 but it removes the method to add a funcional option