tachyon-drive
    Preparing search index...

    Interface IStoreProcessor<Output>

    Interface for a store processor that processes data before it is written to storage and after it is loaded from storage.

    v0.0.1

    interface IStoreProcessor<Output> {
        name: string;
        postHydrate(data: Output): Output | Promise<Output>;
        preStore(data: Output): Output | Promise<Output>;
    }

    Type Parameters

    • Output

      The type of the data that is written to storage.

    Index

    Properties

    Methods

    Properties

    name: string

    Methods

    • Post-process the data after it is hydrated from storage.

      Parameters

      Returns Output | Promise<Output>

    • Pre-process the data before it is stored to storage.

      Parameters

      Returns Output | Promise<Output>