Logos DX
    Preparing search index...

    Pluggable persistence adapter.

    Implement this to persist cookies across FetchEngine instances (e.g., Redis for horizontal scaling, localStorage for browsers, a JSON file for CLIs).

    The jar calls load() once at init and save() after every mutation. For shared-state backends (Redis), load() should always read fresh — the jar will call it before each outgoing request when syncOnRequest is enabled.

    interface CookieAdapter {
        load(): Promise<Cookie[]>;
        save(cookies: Cookie[]): Promise<void>;
    }
    Index

    Methods

    Methods

    • Load all persisted cookies. Called at init and optionally before each request.

      Returns Promise<Cookie[]>

    • Persist the full current cookie store. Called after every mutation.

      Parameters

      Returns Promise<void>