MCPcopy
hub / github.com/msiemens/tinydb / clear_cache

Method clear_cache

tinydb/table.py:637–642  ·  view source on GitHub ↗

Clear the query cache.

(self)

Source from the content-addressed store, hash-verified

635 return len(self.search(cond))
636
637 def clear_cache(self) -> None:
638 """
639 Clear the query cache.
640 """
641
642 self._query_cache.clear()
643
644 def __len__(self):
645 """

Callers 2

_update_tableMethod · 0.95
test_lru_cacheFunction · 0.80

Calls 1

clearMethod · 0.80

Tested by 1

test_lru_cacheFunction · 0.64