logged-cache 0.0.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.
- logged_cache/__init__.py +50 -0
- logged_cache/core.py +826 -0
- logged_cache/decorators.py +424 -0
- logged_cache/py.typed +1 -0
- logged_cache-0.0.0.dist-info/METADATA +389 -0
- logged_cache-0.0.0.dist-info/RECORD +8 -0
- logged_cache-0.0.0.dist-info/WHEEL +4 -0
- logged_cache-0.0.0.dist-info/licenses/LICENSE +21 -0
logged_cache/__init__.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Logged cachetools wrappers for production Python applications.
|
|
2
|
+
|
|
3
|
+
The package exposes cache manager classes, the logged mapping wrapper, cache
|
|
4
|
+
statistics, and decorators from a single import location.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from .core import (
|
|
8
|
+
AsyncCacheManager,
|
|
9
|
+
AsyncLRUCacheManager,
|
|
10
|
+
AsyncTTLCacheManager,
|
|
11
|
+
BaseAsyncCacheManager,
|
|
12
|
+
BaseCacheManager,
|
|
13
|
+
CacheEvent,
|
|
14
|
+
CacheFunction,
|
|
15
|
+
CacheManager,
|
|
16
|
+
CacheStats,
|
|
17
|
+
EventHook,
|
|
18
|
+
KeyFormatter,
|
|
19
|
+
LoggedCache,
|
|
20
|
+
LRUCacheManager,
|
|
21
|
+
TTLCacheManager,
|
|
22
|
+
cache_function_context,
|
|
23
|
+
default_key_formatter,
|
|
24
|
+
format_cache_key,
|
|
25
|
+
)
|
|
26
|
+
from .decorators import async_cached, async_cachedmethod, cached, cachedmethod
|
|
27
|
+
|
|
28
|
+
__all__ = [
|
|
29
|
+
"AsyncCacheManager",
|
|
30
|
+
"AsyncLRUCacheManager",
|
|
31
|
+
"AsyncTTLCacheManager",
|
|
32
|
+
"BaseAsyncCacheManager",
|
|
33
|
+
"BaseCacheManager",
|
|
34
|
+
"CacheEvent",
|
|
35
|
+
"CacheFunction",
|
|
36
|
+
"CacheManager",
|
|
37
|
+
"CacheStats",
|
|
38
|
+
"EventHook",
|
|
39
|
+
"KeyFormatter",
|
|
40
|
+
"LRUCacheManager",
|
|
41
|
+
"LoggedCache",
|
|
42
|
+
"TTLCacheManager",
|
|
43
|
+
"async_cached",
|
|
44
|
+
"async_cachedmethod",
|
|
45
|
+
"cache_function_context",
|
|
46
|
+
"cached",
|
|
47
|
+
"cachedmethod",
|
|
48
|
+
"default_key_formatter",
|
|
49
|
+
"format_cache_key",
|
|
50
|
+
]
|