dialcache 0.25.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dialcache/__init__.py +38 -0
- dialcache/cache.py +1185 -0
- dialcache/clock.py +53 -0
- dialcache/config.py +296 -0
- dialcache/context.py +133 -0
- dialcache/errors.py +46 -0
- dialcache/key.py +149 -0
- dialcache/local.py +77 -0
- dialcache/metrics.py +39 -0
- dialcache/protocol.py +301 -0
- dialcache/py.typed +0 -0
- dialcache/redis.py +213 -0
- dialcache/serializer.py +55 -0
- dialcache-0.25.0.dist-info/METADATA +256 -0
- dialcache-0.25.0.dist-info/RECORD +17 -0
- dialcache-0.25.0.dist-info/WHEEL +4 -0
- dialcache-0.25.0.dist-info/licenses/LICENSE +21 -0
dialcache/__init__.py
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""DialCache: explicit scopes, layered caching, and portable Redis frames."""
|
|
2
|
+
|
|
3
|
+
from .cache import DialCache
|
|
4
|
+
from .config import UNSET, CacheLayer, DialCacheKeyConfig, KeyConfig, Policy
|
|
5
|
+
from .errors import (
|
|
6
|
+
ConfigError,
|
|
7
|
+
DialCacheError,
|
|
8
|
+
FallbackTimeoutError,
|
|
9
|
+
MissingRemoteError,
|
|
10
|
+
RedisReadTimeoutError,
|
|
11
|
+
RemoteReadTimeoutError,
|
|
12
|
+
UseCaseIsAlreadyRegisteredError,
|
|
13
|
+
UseCaseNameIsReservedError,
|
|
14
|
+
)
|
|
15
|
+
from .key import Key, normalize_args
|
|
16
|
+
from .serializer import UNDEFINED, JsonSerializer, Serializer
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
"DialCache",
|
|
20
|
+
"Policy",
|
|
21
|
+
"KeyConfig",
|
|
22
|
+
"DialCacheKeyConfig",
|
|
23
|
+
"CacheLayer",
|
|
24
|
+
"Key",
|
|
25
|
+
"normalize_args",
|
|
26
|
+
"Serializer",
|
|
27
|
+
"JsonSerializer",
|
|
28
|
+
"UNDEFINED",
|
|
29
|
+
"UNSET",
|
|
30
|
+
"DialCacheError",
|
|
31
|
+
"ConfigError",
|
|
32
|
+
"FallbackTimeoutError",
|
|
33
|
+
"RemoteReadTimeoutError",
|
|
34
|
+
"RedisReadTimeoutError",
|
|
35
|
+
"MissingRemoteError",
|
|
36
|
+
"UseCaseIsAlreadyRegisteredError",
|
|
37
|
+
"UseCaseNameIsReservedError",
|
|
38
|
+
]
|