try flask caching to get around SQLAlchemy problem with cachetools

This commit is contained in:
Kenneth Kehl
2025-09-26 11:00:46 -07:00
parent d435322ee7
commit e0a1d15f32
2 changed files with 31 additions and 2 deletions

32
poetry.lock generated
View File

@@ -1,4 +1,4 @@
# This file is automatically @generated by Poetry 2.2.0 and should not be changed by hand.
# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand.
[[package]]
name = "aiohappyeyeballs"
@@ -575,6 +575,18 @@ dev = ["CacheControl[filecache,redis]", "build", "cherrypy", "codespell[tomli]",
filecache = ["filelock (>=3.8.0)"]
redis = ["redis (>=2.10.5)"]
[[package]]
name = "cachelib"
version = "0.13.0"
description = "A collection of cache libraries in the same API interface."
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "cachelib-0.13.0-py3-none-any.whl", hash = "sha256:8c8019e53b6302967d4e8329a504acf75e7bc46130291d30188a6e4e58162516"},
{file = "cachelib-0.13.0.tar.gz", hash = "sha256:209d8996e3c57595bee274ff97116d1d73c4980b2fd9a34c7846cd07fd2e1a48"},
]
[[package]]
name = "cachetools"
version = "6.2.0"
@@ -1505,6 +1517,22 @@ files = [
bcrypt = ">=3.1.1"
Flask = "*"
[[package]]
name = "flask-caching"
version = "2.3.1"
description = "Adds caching support to Flask applications."
optional = false
python-versions = ">=3.8"
groups = ["main"]
files = [
{file = "Flask_Caching-2.3.1-py3-none-any.whl", hash = "sha256:d3efcf600e5925ea5a2fcb810f13b341ae984f5b52c00e9d9070392f3ca10761"},
{file = "flask_caching-2.3.1.tar.gz", hash = "sha256:65d7fd1b4eebf810f844de7de6258254b3248296ee429bdcb3f741bcbf7b98c9"},
]
[package.dependencies]
cachelib = ">=0.9.0"
Flask = "*"
[[package]]
name = "flask-migrate"
version = "4.1.0"
@@ -5798,4 +5826,4 @@ cffi = ["cffi (>=1.17,<2.0) ; platform_python_implementation != \"PyPy\" and pyt
[metadata]
lock-version = "2.1"
python-versions = "^3.13.2"
content-hash = "a995175e1e68ad12cca8c44a9af5892c28d513f92736ae12a46b7c561439d6ae"
content-hash = "e43a9f53cc6450ebec3748c03b262c833ecbef2e80418d7176fee8555c985864"

View File

@@ -25,6 +25,7 @@ click-didyoumean = "==0.3.1"
click-plugins = "==1.1.1.2"
click-repl = "==0.3.0"
deprecated = "==1.2.18"
Flask-Caching = "^2.3.1"
gevent = "==25.5.1"
expiringdict = "==1.2.2"
flask = "~=3.1"