OpenAgentID documentation
Source referencesRust module referenceaegis-store-pg

aegis-store-pg · cache

Declared module signatures, types, configuration, and source documentation.

Source: aegis/aegis-store-pg/src/cache.rs. SHA-256: 547eebeb30ac81b9b3b3e59b462b3ec398e94155ae70f2d389e94fe6340f27da.

This source reference follows declared modules and preserves feature attributes. It includes public declarations and implementation methods in those modules. Private-module exports and trait resolution still require the compiler; not every declaration is a crate-root import. Function bodies and constant values are omitted. Source comments describe their implementation context and are not a production deployment claim.

cache::PgVerificationCacheStore

PostgreSQL-backed verification cache store.

Caches VerificationResult records in the aegis_verification_cache table. The result is serialized as a JSONB column. Expiration is tracked via the expires_at column; expired entries are not returned by get_cached.

pub struct PgVerificationCacheStore {

}

Source line: 17.

cache::PgVerificationCacheStore::new

Create a new PostgreSQL verification cache store with the given connection pool and TTL (in seconds).

The TTL is capped at 300 seconds per the AEGIS specification.

pub fn new(pool: PgPool, ttl_secs: i64) -> Self;

Source line: 31.

On this page