Skip to content

Commit

Permalink
Added cache key generator to README file
Browse files Browse the repository at this point in the history
  • Loading branch information
eko committed Jan 23, 2022
1 parent c4b57e7 commit 8c5c1f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -394,6 +394,16 @@ type StoreInterface interface {

Of course, I suggest you to have a look at current caches or stores to implement your own.

### Custom cache key generator

You can implement the following interface in order to generate a custom cache key:

```go
type CacheKeyGenerator interface {
GetCacheKey() string
}
```

### Benchmarks

![Benchmarks](https://raw.githubusercontent.com/eko/gocache/master/misc/benchmarks.jpeg)
Expand Down

0 comments on commit 8c5c1f1

Please sign in to comment.