Skip to main content

cache_get

Function cache_get 

Source
pub fn cache_get(
    conn: &Connection,
    url_norm: &str,
) -> Result<Option<(String, String, String)>>
Expand description

A cached fetched page: (title, text, fetched_at rfc3339), or None on a cache miss. Free function — the toolbox opens its own short-lived connection by path, same as the file-search queries. The web_cache name is deliberately unqualified: it resolves to the attached cache schema on a main-db connection, or to main on a standalone cache-only connection.