Skip to content

Commit d25d45b

Browse files
author
Fabien Coelho
committed
slightly improve examples
1 parent 7e857b5 commit d25d45b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/REFERENCE.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,14 @@ import threading
2626
import cachetools
2727
import CacheToolsUtils as ctu
2828

29-
lcache = LockedCache(cachetools.TTLCache(...), threading.Lock())
29+
lcache = ctu.LockedCache(cachetools.TTLCache(...), threading.Lock())
3030
```
3131

3232
## PrefixedCache
3333

3434
Add a key prefix to an underlying cache to avoid key collisions.
3535

3636
```python
37-
import cachetools
38-
import CacheToolsUtils as ctu
39-
4037
ct_base = cachetools.TTLCache(maxsize=1048576, ttl=600)
4138
foo_cache = ctu.PrefixedCache(ct_base, "foo.")
4239
bla_cache = ctu.PrefixedCache(ct_base, "bla.")

0 commit comments

Comments
 (0)