From e7cda85d81038cf390a15b93d5276754a8cc2514 Mon Sep 17 00:00:00 2001 From: Eugene Toder Date: Thu, 25 Jan 2024 17:19:44 -0500 Subject: [PATCH] Fix typo in a docstring (#10925) * Fix typo in a docstring It's "compiled_cache" not "query_cache". * Update async engine as well --- lib/sqlalchemy/engine/base.py | 2 +- lib/sqlalchemy/ext/asyncio/engine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index 2706bbe0ee..17b3f81186 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -2994,7 +2994,7 @@ class Engine( This applies **only** to the built-in cache that is established via the :paramref:`_engine.create_engine.query_cache_size` parameter. It will not impact any dictionary caches that were passed via the - :paramref:`.Connection.execution_options.query_cache` parameter. + :paramref:`.Connection.execution_options.compiled_cache` parameter. .. versionadded:: 1.4 diff --git a/lib/sqlalchemy/ext/asyncio/engine.py b/lib/sqlalchemy/ext/asyncio/engine.py index 817594e148..aabd4b961a 100644 --- a/lib/sqlalchemy/ext/asyncio/engine.py +++ b/lib/sqlalchemy/ext/asyncio/engine.py @@ -1168,7 +1168,7 @@ class AsyncEngine(ProxyComparable[Engine], AsyncConnectable): This applies **only** to the built-in cache that is established via the :paramref:`_engine.create_engine.query_cache_size` parameter. It will not impact any dictionary caches that were passed via the - :paramref:`.Connection.execution_options.query_cache` parameter. + :paramref:`.Connection.execution_options.compiled_cache` parameter. .. versionadded:: 1.4 -- 2.47.3