Skip to content

Commit a1fc1c0

Browse files
- add ristretto to readme
1 parent d2e5b89 commit a1fc1c0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ var rs = red.NewRedisStore(&redis.Pool{
6767
An experimental (and untested) memcached driver is provided.
6868
It relies on Brad Fitzpatrick's [memcache driver](https://godoc.org/github.com/bradfitz/gomemcache/memcache).
6969

70+
### Ristretto
71+
72+
DGraph's [Ristretto](https://github.com/dgraph-io/ristretto) is a fast, fixed size, in-memory cache with a dual focus on throughput and hit ratio performance.
73+
74+
The API is potentially still in flux so no backward compatibility guarantee is provided for this driver.
75+
7076
## Create a SlowRetrieve Function
7177

7278
The package initially checks if data exists in the cache. If it doesn’t, then it elegantly fetches the data directly from the database by calling the `SlowRetrieve` function. It then saves the data into the cache so that next time it doesn’t have to refetch it from the database.

0 commit comments

Comments
 (0)