Skip to content

@codesoul-co/hypha-memory / managed-store

Using this module

Use the Managed store module for persisting and reading data at this boundary. It exports 4 classes, 1 function, 8 interfaces.

Import from the package entrypoint

ts
import {
  InMemoryManagedMemoryRecordStore,
  InMemoryMemoryIdempotencyStore,
  InMemoryMemoryIndexOutboxStore,
  InMemoryMemoryPersistenceUnitOfWork,
  matchesFilter,
} from '@codesoul-co/hypha-memory';

import type {
  ManagedMemoryRecordQuery,
  ManagedMemoryRecordStore,
  MemoryIdempotencyStore,
  MemoryIndexOutboxRecord,
  MemoryIndexOutboxStore,
  MemoryPersistenceCapabilities,
  MemoryPersistenceTransaction,
  MemoryPersistenceUnitOfWork,
} from '@codesoul-co/hypha-memory';

Usage patterns

  • Use the 8 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 4 classes as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 1 function as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
InMemoryManagedMemoryRecordStoreclassnew InMemoryManagedMemoryRecordStore(): InMemoryManagedMemoryRecordStoreIn Memory Managed Memory Record Store class with 11 public constructor or member entries; its exact declarations are listed below.
InMemoryMemoryIdempotencyStoreclassnew InMemoryMemoryIdempotencyStore(): InMemoryMemoryIdempotencyStoreIn Memory Memory Idempotency Store class with 3 public constructor or member entries; its exact declarations are listed below.
InMemoryMemoryIndexOutboxStoreclassnew InMemoryMemoryIndexOutboxStore(): InMemoryMemoryIndexOutboxStoreIn Memory Memory Index Outbox Store class with 8 public constructor or member entries; its exact declarations are listed below.
InMemoryMemoryPersistenceUnitOfWorkclassnew InMemoryMemoryPersistenceUnitOfWork(recordStore?: ManagedMemoryRecordStore, outboxStore?: MemoryIndexOutboxStore): InMemoryMemoryPersistenceUnitOfWorkIn Memory Memory Persistence Unit Of Work class with 5 public constructor or member entries; its exact declarations are listed below.
matchesFilterfunctionmatchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): booleanMatches Filter function with 1 public call signature; parameters and return types are listed below.
ManagedMemoryRecordQueryinterfaceinterface ManagedMemoryRecordQueryManaged Memory Record Query interface with 5 public fields or methods.
ManagedMemoryRecordStoreinterfaceinterface ManagedMemoryRecordStoreManaged Memory Record Store interface with 10 public fields or methods.
MemoryIdempotencyStoreinterfaceinterface MemoryIdempotencyStoreMemory Idempotency Store interface with 2 public fields or methods.
MemoryIndexOutboxRecordinterfaceinterface MemoryIndexOutboxRecordMemory Index Outbox Record interface with 19 public fields or methods.
MemoryIndexOutboxStoreinterfaceinterface MemoryIndexOutboxStoreMemory Index Outbox Store interface with 7 public fields or methods.
MemoryPersistenceCapabilitiesinterfaceinterface MemoryPersistenceCapabilitiesMemory Persistence Capabilities interface with 2 public fields or methods.
MemoryPersistenceTransactioninterfaceinterface MemoryPersistenceTransactionMemory Persistence Transaction interface with 2 public fields or methods.
MemoryPersistenceUnitOfWorkinterfaceinterface MemoryPersistenceUnitOfWork extends MemoryPersistenceTransactionMemory Persistence Unit Of Work interface with 4 public fields or methods.

InMemoryManagedMemoryRecordStore

In Memory Managed Memory Record Store class with 11 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryManagedMemoryRecordStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export declare class InMemoryManagedMemoryRecordStore implements ManagedMemoryRecordStore {
    create(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord>;
    get(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null>;
    getVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null>;
    list(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]>;
    createVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord>;
    updateStatus(id: string, scope: ManagedMemoryScope, expectedRevision: number, status: MemoryStatus, updatedAt: string): Promise<ManagedMemoryRecord>;
    delete(id: string, scope: ManagedMemoryScope): Promise<void>;
    history(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]>;
    transaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T>;
    health(): Promise<ProviderHealth>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryManagedMemoryRecordStoreCreates an instance of this class.
createmethodcreate(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.
createVersionmethodcreateVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.
deletemethoddelete(id: string, scope: ManagedMemoryScope): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
getVersionByScopeHashmethodgetVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
historymethodhistory(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]>Public method; parameters and return type are shown in the signature.
listmethodlist(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.
updateStatusmethodupdateStatus(id: string, scope: ManagedMemoryScope, expectedRevision: number, status: MemoryStatus, updatedAt: string): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.

InMemoryMemoryIdempotencyStore

In Memory Memory Idempotency Store class with 3 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryMemoryIdempotencyStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export declare class InMemoryMemoryIdempotencyStore implements MemoryIdempotencyStore {
    get(scopeHash: string, key: string): Promise<unknown | null>;
    set(scopeHash: string, key: string, result: unknown): Promise<void>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryMemoryIdempotencyStoreCreates an instance of this class.
getmethodget(scopeHash: string, key: string): Promise<unknown | null>Public method; parameters and return type are shown in the signature.
setmethodset(scopeHash: string, key: string, result: unknown): Promise<void>Public method; parameters and return type are shown in the signature.

InMemoryMemoryIndexOutboxStore

In Memory Memory Index Outbox Store class with 8 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryMemoryIndexOutboxStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export declare class InMemoryMemoryIndexOutboxStore implements MemoryIndexOutboxStore {
    enqueue(record: MemoryIndexOutboxRecord): Promise<void>;
    lease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]>;
    renew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean>;
    complete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean>;
    fail(id: string, owner: string, leaseToken: string, now: string, error: import('./contracts').NormalizedMemoryError, retryAt: string, deadLetter?: boolean): Promise<boolean>;
    list(): Promise<MemoryIndexOutboxRecord[]>;
    transaction<T>(fn: (store: MemoryIndexOutboxStore) => Promise<T>): Promise<T>;
}

Public members

MemberKindSignatureDescription
completemethodcomplete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean>Public method; parameters and return type are shown in the signature.
constructorconstructor(): InMemoryMemoryIndexOutboxStoreCreates an instance of this class.
enqueuemethodenqueue(record: MemoryIndexOutboxRecord): Promise<void>Public method; parameters and return type are shown in the signature.
failmethodfail(id: string, owner: string, leaseToken: string, now: string, error: import("./contracts").NormalizedMemoryError, retryAt: string, deadLetter?: boolean): Promise<boolean>Public method; parameters and return type are shown in the signature.
leasemethodlease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]>Public method; parameters and return type are shown in the signature.
listmethodlist(): Promise<MemoryIndexOutboxRecord[]>Public method; parameters and return type are shown in the signature.
renewmethodrenew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (store: MemoryIndexOutboxStore) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.

InMemoryMemoryPersistenceUnitOfWork

In Memory Memory Persistence Unit Of Work class with 5 public constructor or member entries; its exact declarations are listed below.

  • Kind: class
  • Import: import { InMemoryMemoryPersistenceUnitOfWork } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export declare class InMemoryMemoryPersistenceUnitOfWork implements MemoryPersistenceUnitOfWork {
    readonly recordStore: ManagedMemoryRecordStore;
    readonly outboxStore: MemoryIndexOutboxStore;
    readonly capabilities: MemoryPersistenceCapabilities;
    constructor(recordStore?: ManagedMemoryRecordStore, outboxStore?: MemoryIndexOutboxStore);
    transaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T>;
}

Public members

MemberKindSignatureDescription
capabilitiespropertyreadonly capabilities: MemoryPersistenceCapabilitiesPublic property; its type, readonly modifier and optionality are shown in the signature.
constructorconstructor(recordStore?: ManagedMemoryRecordStore, outboxStore?: MemoryIndexOutboxStore): InMemoryMemoryPersistenceUnitOfWorkCreates an instance of this class.
outboxStorepropertyreadonly outboxStore: MemoryIndexOutboxStorePublic property; its type, readonly modifier and optionality are shown in the signature.
recordStorepropertyreadonly recordStore: ManagedMemoryRecordStorePublic property; its type, readonly modifier and optionality are shown in the signature.
transactionmethodtransaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.

matchesFilter

Matches Filter function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { matchesFilter } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export declare function matchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): boolean;

Call signature

text
matchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): boolean

Parameters

ParameterTypeRequiredDescription
recordManagedMemoryRecord<unknown>YesRequired parameter; accepted values are defined by the type column.
filterMemorySearchFilterNoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: boolean
  • Description: The return contract is defined by the type shown above.

ManagedMemoryRecordQuery

Managed Memory Record Query interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryRecordQuery } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface ManagedMemoryRecordQuery {
    scope: ManagedMemoryScope;
    filter?: MemorySearchFilter;
    includeSuperseded?: boolean;
    includeInvalidated?: boolean;
    limit?: number;
}

Contract members

MemberKindSignatureDescription
filterpropertyfilter?: MemorySearchFilterPublic property; its type, readonly modifier and optionality are shown in the signature.
includeInvalidatedpropertyincludeInvalidated?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
includeSupersededpropertyincludeSuperseded?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
limitpropertylimit?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: ManagedMemoryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

ManagedMemoryRecordStore

Managed Memory Record Store interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { ManagedMemoryRecordStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface ManagedMemoryRecordStore {
    create(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord>;
    get(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null>;
    getVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null>;
    list(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]>;
    createVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord>;
    updateStatus(id: string, scope: ManagedMemoryScope, expectedRevision: number, status: MemoryStatus, updatedAt: string): Promise<ManagedMemoryRecord>;
    delete(id: string, scope: ManagedMemoryScope): Promise<void>;
    history(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]>;
    transaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T>;
    health(): Promise<ProviderHealth>;
}

Contract members

MemberKindSignatureDescription
createmethodcreate(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.
createVersionmethodcreateVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.
deletemethoddelete(id: string, scope: ManagedMemoryScope): Promise<void>Public method; parameters and return type are shown in the signature.
getmethodget(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
getVersionByScopeHashmethodgetVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<ProviderHealth>Public method; parameters and return type are shown in the signature.
historymethodhistory(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]>Public method; parameters and return type are shown in the signature.
listmethodlist(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.
updateStatusmethodupdateStatus(id: string, scope: ManagedMemoryScope, expectedRevision: number, status: MemoryStatus, updatedAt: string): Promise<ManagedMemoryRecord>Public method; parameters and return type are shown in the signature.

MemoryIdempotencyStore

Memory Idempotency Store interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryIdempotencyStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryIdempotencyStore {
    get(scopeHash: string, key: string): Promise<unknown | null>;
    set(scopeHash: string, key: string, result: unknown): Promise<void>;
}

Contract members

MemberKindSignatureDescription
getmethodget(scopeHash: string, key: string): Promise<unknown | null>Public method; parameters and return type are shown in the signature.
setmethodset(scopeHash: string, key: string, result: unknown): Promise<void>Public method; parameters and return type are shown in the signature.

MemoryIndexOutboxRecord

Memory Index Outbox Record interface with 19 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryIndexOutboxRecord } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryIndexOutboxRecord {
    id: string;
    operationId: string;
    memoryId: string;
    memoryVersionId: string;
    /** Logical Memory revision; distinct from this outbox record's lease fencing token. */
    memoryRevision?: number;
    scopeHash: string;
    action: 'upsert' | 'delete' | 'reindex';
    targetVectorStoreIds: string[];
    state: 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'dead_letter';
    attempts: number;
    availableAt: string;
    completedVectorStoreIds?: string[];
    leaseOwner?: string;
    leaseToken?: string;
    leaseExpiresAt?: string;
    fencingToken?: number;
    lastError?: import('./contracts').NormalizedMemoryError;
    createdAt: string;
    updatedAt: string;
}

Contract members

MemberKindSignatureDescription
actionpropertyaction: "delete" | "reindex" | "upsert"Public property; its type, readonly modifier and optionality are shown in the signature.
attemptspropertyattempts: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
availableAtpropertyavailableAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
completedVectorStoreIdspropertycompletedVectorStoreIds?: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
fencingTokenpropertyfencingToken?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
lastErrorpropertylastError?: import("/Users/erwin/Downloads/codespace/Hypha/packages/memory/dist/contracts").NormalizedMemoryErrorPublic property; its type, readonly modifier and optionality are shown in the signature.
leaseExpiresAtpropertyleaseExpiresAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
leaseOwnerpropertyleaseOwner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
leaseTokenpropertyleaseToken?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryIdpropertymemoryId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
memoryRevisionpropertymemoryRevision?: numberLogical Memory revision; distinct from this outbox record's lease fencing token.
memoryVersionIdpropertymemoryVersionId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scopeHashpropertyscopeHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statepropertystate: "completed" | "failed" | "processing" | "pending" | "dead_letter" | "partial"Public property; its type, readonly modifier and optionality are shown in the signature.
targetVectorStoreIdspropertytargetVectorStoreIds: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryIndexOutboxStore

Memory Index Outbox Store interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryIndexOutboxStore } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryIndexOutboxStore {
    enqueue(record: MemoryIndexOutboxRecord): Promise<void>;
    lease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]>;
    renew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean>;
    complete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean>;
    fail(id: string, owner: string, leaseToken: string, now: string, error: import('./contracts').NormalizedMemoryError, retryAt: string, deadLetter?: boolean): Promise<boolean>;
    list(): Promise<MemoryIndexOutboxRecord[]>;
    transaction<T>(fn: (store: MemoryIndexOutboxStore) => Promise<T>): Promise<T>;
}

Contract members

MemberKindSignatureDescription
completemethodcomplete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean>Public method; parameters and return type are shown in the signature.
enqueuemethodenqueue(record: MemoryIndexOutboxRecord): Promise<void>Public method; parameters and return type are shown in the signature.
failmethodfail(id: string, owner: string, leaseToken: string, now: string, error: import("./contracts").NormalizedMemoryError, retryAt: string, deadLetter?: boolean): Promise<boolean>Public method; parameters and return type are shown in the signature.
leasemethodlease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]>Public method; parameters and return type are shown in the signature.
listmethodlist(): Promise<MemoryIndexOutboxRecord[]>Public method; parameters and return type are shown in the signature.
renewmethodrenew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean>Public method; parameters and return type are shown in the signature.
transactionmethodtransaction<T>(fn: (store: MemoryIndexOutboxStore) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.

MemoryPersistenceCapabilities

Memory Persistence Capabilities interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryPersistenceCapabilities } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryPersistenceCapabilities {
    durable: boolean;
    atomicRecordAndOutbox: boolean;
}

Contract members

MemberKindSignatureDescription
atomicRecordAndOutboxpropertyatomicRecordAndOutbox: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
durablepropertydurable: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryPersistenceTransaction

Memory Persistence Transaction interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryPersistenceTransaction } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryPersistenceTransaction {
    recordStore: ManagedMemoryRecordStore;
    outboxStore: MemoryIndexOutboxStore;
}

Contract members

MemberKindSignatureDescription
outboxStorepropertyoutboxStore: MemoryIndexOutboxStorePublic property; its type, readonly modifier and optionality are shown in the signature.
recordStorepropertyrecordStore: ManagedMemoryRecordStorePublic property; its type, readonly modifier and optionality are shown in the signature.

MemoryPersistenceUnitOfWork

Memory Persistence Unit Of Work interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { MemoryPersistenceUnitOfWork } from '@codesoul-co/hypha-memory';
  • Source module: managed-store

Declaration

text
export interface MemoryPersistenceUnitOfWork extends MemoryPersistenceTransaction {
    capabilities: MemoryPersistenceCapabilities;
    transaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T>;
}

Contract members

MemberKindSignatureDescription
capabilitiespropertycapabilities: MemoryPersistenceCapabilitiesPublic property; its type, readonly modifier and optionality are shown in the signature.
outboxStorepropertyoutboxStore: MemoryIndexOutboxStorePublic property; its type, readonly modifier and optionality are shown in the signature.
recordStorepropertyrecordStore: ManagedMemoryRecordStorePublic property; its type, readonly modifier and optionality are shown in the signature.
transactionmethodtransaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T>Public method; parameters and return type are shown in the signature.