ahvn.cache.json_cache module¶
JSON-file-based cache backend.
- class ahvn.cache.json_cache.JsonCache(path, exclude=None, *args, **kwargs)[source]¶
Bases:
BaseCacheAn implementation of BaseCache that stores data in JSON files in a specified directory. Each item key:value is stored in a separate JSON file named after the key, with values serialized as JSON.