@@ -5,10 +5,7 @@ Pyappcache is a library to make it easier to use application-level
5
5
caching in Python.
6
6
7
7
- Allows putting arbitrary Python objects into the cache
8
-
9
- - And provides type hints so you can typecheck what you get back
10
- from the cache
11
-
8
+ - Uses PEP484 type hints to help you typecheck cache return values
12
9
- Supports Memcache, Redis and SQLite
13
10
- Supports working as a "read-through" and "write-through" cache
14
11
- Native support for key `"namespacing" <https://github.com/memcached/memcached/wiki/ProgrammingTricks#namespacing >`__
@@ -48,16 +45,16 @@ Using the redis/memcache/sqlite client directly
48
45
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
49
46
50
47
- Explicit key objects allow for type inference and encapsulation of keying
51
- - Key prefixing
52
- - Optional compression
48
+ - Keys are prefix to help prevent collisions
49
+ - Optional, pluggable, compression
53
50
- Hopefully the overhead is small (not yet tested!)
54
51
- Portable between redis/memcache/sqlite, etc
55
52
56
53
dogpile.cache
57
54
~~~~~~~~~~~~~
58
55
59
56
- Explicit key objects allow for type inference and encapsulation of keying
60
- - As yet there is no locking in pyappcache
57
+ - dogpile.cache provides locking, pyappcache does not
61
58
- Reduced temptation to use the problematic decorator pattern
62
59
- This often causes import order problems as you need to have your cache at import time
63
- - SQLite backend instead of DBM/file backends
60
+ - Pyappache doesn't provide DBM/file backends, SQLite instead
0 commit comments