glimr_sqlite/cache/pool
SQLite Cache Pool
Provides a cache pool wrapper around an existing SQLite database pool. The cache uses a database table to store cached values with expiration timestamps.
Types
Values
pub fn get_db_pool(pool: Pool) -> pool.Pool
Returns the underlying database pool for executing queries. Used internally by cache operations to access the SQLite connection.
pub fn get_table(pool: Pool) -> String
Returns the cache table name. Used internally by cache operations to construct SQL queries for the correct table.
pub fn start_pool(
db_pool: pool.Pool,
store: driver.CacheStore,
) -> Pool
Creates a cache pool from an existing database pool. The store configuration provides the table name used for storing cache entries.