MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / clear_cache

Method clear_cache

lib/sqlalchemy/engine/reflection.py:270–279  ·  view source on GitHub ↗

reset the cache for this :class:`.Inspector`. Inspection methods that have data cached will emit SQL queries when next called to get new data. .. versionadded:: 2.0

(self)

Source from the content-addressed store, hash-verified

268 self.info_cache = {}
269
270 def clear_cache(self) -> None:
271 """reset the cache for this :class:`.Inspector`.
272
273 Inspection methods that have data cached will emit SQL queries
274 when next called to get new data.
275
276 .. versionadded:: 2.0
277
278 """
279 self.info_cache.clear()
280
281 @classmethod
282 @util.deprecated(

Calls 1

clearMethod · 0.45