Skip to main content

Module cache

Module cache 

Source
Expand description

Statement caching for compiled SQL queries.

Caches compiled SQL strings keyed by a hash so repeated queries avoid redundant string building.

Structs§

CachedStatement
A cached compiled SQL statement.
StatementCache
LRU-style cache for compiled SQL statements.

Functions§

cache_key
Compute a hash key for caching from any hashable value.