invenio-cache 3.0.1__tar.gz → 3.0.2__tar.gz
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.
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/PKG-INFO +2 -2
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/__init__.py +3 -2
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/config.py +2 -1
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/.gitignore +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/AUTHORS.rst +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/LICENSE +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/README.rst +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/_compat.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/bccache.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/decorators.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/errors.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/ext.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/lock.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/invenio_cache/proxies.py +0 -0
- {invenio_cache-3.0.1 → invenio_cache-3.0.2}/pyproject.toml +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# SPDX-FileCopyrightText: 2017-2018 CERN.
|
|
2
2
|
# SPDX-FileCopyrightText: 2024-2026 Graz University of Technology.
|
|
3
3
|
# SPDX-FileCopyrightText: 2026 TU Wien.
|
|
4
|
+
# SPDX-FileCopyrightText: 2026 KTH Royal Institute of Technology.
|
|
4
5
|
# SPDX-License-Identifier: MIT
|
|
5
6
|
|
|
6
7
|
"""Cache module for Invenio.
|
|
@@ -12,7 +13,7 @@ Create a Flask application:
|
|
|
12
13
|
|
|
13
14
|
>>> from flask import Flask
|
|
14
15
|
>>> app = Flask('myapp')
|
|
15
|
-
>>> app.config['CACHE_TYPE'] = '
|
|
16
|
+
>>> app.config['CACHE_TYPE'] = 'SimpleCache'
|
|
16
17
|
|
|
17
18
|
Initialize Invenio-Cache:
|
|
18
19
|
|
|
@@ -74,7 +75,7 @@ from .decorators import cached_unless_authenticated
|
|
|
74
75
|
from .ext import InvenioCache
|
|
75
76
|
from .proxies import current_cache, current_cache_ext
|
|
76
77
|
|
|
77
|
-
__version__ = "3.0.
|
|
78
|
+
__version__ = "3.0.2"
|
|
78
79
|
|
|
79
80
|
__all__ = (
|
|
80
81
|
"__version__",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# SPDX-FileCopyrightText: 2017-2018 CERN.
|
|
2
2
|
# SPDX-FileCopyrightText: 2025 Graz University of Technology.
|
|
3
|
+
# SPDX-FileCopyrightText: 2026 KTH Royal Institute of Technology.
|
|
3
4
|
# SPDX-License-Identifier: MIT
|
|
4
5
|
|
|
5
6
|
"""Configuration for Invenio-Cache module.
|
|
@@ -16,7 +17,7 @@ CACHE_KEY_PREFIX = "cache::"
|
|
|
16
17
|
"""Cache key prefix."""
|
|
17
18
|
|
|
18
19
|
#: Sets the cache type.
|
|
19
|
-
CACHE_TYPE = "flask_caching.backends.
|
|
20
|
+
CACHE_TYPE = "flask_caching.backends.RedisCache"
|
|
20
21
|
"""Cache type.
|
|
21
22
|
|
|
22
23
|
Please refer to Flask-Caching documentation for other cache types.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|