Meshpocalypse Semantic
    Preparing search index...

    Class RedisPersistenceAdapter

    Redis/Valkey-backed ATFPersistenceAdapter for multi-node production deployments.

    The caller must supply a connected RedisClientType instance — this adapter does not open or close the connection. This keeps the package lean for users who do not use Redis.

    redis is listed as a peer dependency (>= 4.0.0). Install it separately:

    npm install redis
    
    import { createClient } from 'redis';
    import { ATFTrustSystem } from '@one137th/mesh-semantic';
    import { RedisPersistenceAdapter } from '@one137th/mesh-semantic';

    const client = createClient({ url: 'redis://localhost:6379' });
    await client.connect();

    const adapter = new RedisPersistenceAdapter({ client, ttlSeconds: 86400 });
    const atf = new ATFTrustSystem(undefined, undefined, adapter);
    await atf.hydrate();

    Implements

    Index

    Constructors

    Methods

    Constructors

    Methods