note about not using the generic version yet

This commit is contained in:
Karl Seguin
2022-03-03 22:40:57 +08:00
parent c4d364ba51
commit 2b2801cd19

View File

@@ -9,17 +9,15 @@ Lock contention on the list is reduced by:
Unless otherwise stated, all methods are thread-safe. Unless otherwise stated, all methods are thread-safe.
## Setup
The generic version is not ready to be used yet.
## Configuration ## Configuration
Next, import and create a `Cache` instance: Next, import and create a `Cache` instance:
```go ```go
import ( import (
"github.com/karlseguin/ccache/v3" // The generic version of this cache isn't battle-tested
// use it with caution. Prefer the original non-generic
// implementation for now: github.com/karlseguin/ccache/
) )
// create a cache with string values // create a cache with string values