glimr/cache/file

File Cache Entry Point

Single entry point for file-based caching so application code doesn’t need to know about config loading or pool management. Keeps cache setup to one line in application supervisors.

Values

pub fn start(name: String) -> pool.Pool

Looks up the named store in config/cache.toml and starts a pool for it. Panics on missing/invalid config to fail fast during app startup rather than silently degrading later.

pub fn start_session(pool: pool.Pool) -> Nil

Initializes the session store using the filesystem as the backend. Session files are stored in a sessions subdirectory of the file cache pool’s path. The store is cached in persistent_term for fast access.

Search Document