We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e857b5 commit d25d45bCopy full SHA for d25d45b
docs/REFERENCE.md
@@ -26,17 +26,14 @@ import threading
26
import cachetools
27
import CacheToolsUtils as ctu
28
29
-lcache = LockedCache(cachetools.TTLCache(...), threading.Lock())
+lcache = ctu.LockedCache(cachetools.TTLCache(...), threading.Lock())
30
```
31
32
## PrefixedCache
33
34
Add a key prefix to an underlying cache to avoid key collisions.
35
36
```python
37
-import cachetools
38
-import CacheToolsUtils as ctu
39
-
40
ct_base = cachetools.TTLCache(maxsize=1048576, ttl=600)
41
foo_cache = ctu.PrefixedCache(ct_base, "foo.")
42
bla_cache = ctu.PrefixedCache(ct_base, "bla.")
0 commit comments