Closed erikdubbelboer closed 4 years ago
Now people who don't use DriverRistretto still have to pull in the dependencies. Would it be an idea to move all drivers to their own packages so you can only compile/pull what you actually use?
That's a very common question in this ecosystem. What dependencies shall we natively support??
As I said before, specifying cache size in bytes rather than entries is a primary challenge. You've accomplished this without modifying any existing interfaces.
golang-lru and snappy were inclusions of convenience. Now ristretto is as well.
Anyone using this library is free to challenge the inclusion. I suspect none will take objection.
We should add an example.
See: https://github.com/kevburnsjr/microcache/issues/19