@codesoul-co/hypha-memory / managed-store
- Package index:
@codesoul-co/hypha-memory - Source:
packages/memory/src/managed-store.ts - Exports: 13
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
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
| Symbol | Kind | Signature | Description |
|---|---|---|---|
InMemoryManagedMemoryRecordStore | class | new InMemoryManagedMemoryRecordStore(): InMemoryManagedMemoryRecordStore | In Memory Managed Memory Record Store class with 11 public constructor or member entries; its exact declarations are listed below. |
InMemoryMemoryIdempotencyStore | class | new InMemoryMemoryIdempotencyStore(): InMemoryMemoryIdempotencyStore | In Memory Memory Idempotency Store class with 3 public constructor or member entries; its exact declarations are listed below. |
InMemoryMemoryIndexOutboxStore | class | new InMemoryMemoryIndexOutboxStore(): InMemoryMemoryIndexOutboxStore | In Memory Memory Index Outbox Store class with 8 public constructor or member entries; its exact declarations are listed below. |
InMemoryMemoryPersistenceUnitOfWork | class | new InMemoryMemoryPersistenceUnitOfWork(recordStore?: ManagedMemoryRecordStore, outboxStore?: MemoryIndexOutboxStore): InMemoryMemoryPersistenceUnitOfWork | In Memory Memory Persistence Unit Of Work class with 5 public constructor or member entries; its exact declarations are listed below. |
matchesFilter | function | matchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): boolean | Matches Filter function with 1 public call signature; parameters and return types are listed below. |
ManagedMemoryRecordQuery | interface | interface ManagedMemoryRecordQuery | Managed Memory Record Query interface with 5 public fields or methods. |
ManagedMemoryRecordStore | interface | interface ManagedMemoryRecordStore | Managed Memory Record Store interface with 10 public fields or methods. |
MemoryIdempotencyStore | interface | interface MemoryIdempotencyStore | Memory Idempotency Store interface with 2 public fields or methods. |
MemoryIndexOutboxRecord | interface | interface MemoryIndexOutboxRecord | Memory Index Outbox Record interface with 19 public fields or methods. |
MemoryIndexOutboxStore | interface | interface MemoryIndexOutboxStore | Memory Index Outbox Store interface with 7 public fields or methods. |
MemoryPersistenceCapabilities | interface | interface MemoryPersistenceCapabilities | Memory Persistence Capabilities interface with 2 public fields or methods. |
MemoryPersistenceTransaction | interface | interface MemoryPersistenceTransaction | Memory Persistence Transaction interface with 2 public fields or methods. |
MemoryPersistenceUnitOfWork | interface | interface MemoryPersistenceUnitOfWork extends MemoryPersistenceTransaction | Memory 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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
constructor | constructor | (): InMemoryManagedMemoryRecordStore | Creates an instance of this class. |
create | method | create(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord> | Public method; parameters and return type are shown in the signature. |
createVersion | method | createVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord> | Public method; parameters and return type are shown in the signature. |
delete | method | delete(id: string, scope: ManagedMemoryScope): Promise<void> | Public method; parameters and return type are shown in the signature. |
get | method | get(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null> | Public method; parameters and return type are shown in the signature. |
getVersionByScopeHash | method | getVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null> | Public method; parameters and return type are shown in the signature. |
health | method | health(): Promise<ProviderHealth> | Public method; parameters and return type are shown in the signature. |
history | method | history(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]> | Public method; parameters and return type are shown in the signature. |
list | method | list(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]> | Public method; parameters and return type are shown in the signature. |
transaction | method | transaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T> | Public method; parameters and return type are shown in the signature. |
updateStatus | method | updateStatus(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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
constructor | constructor | (): InMemoryMemoryIdempotencyStore | Creates an instance of this class. |
get | method | get(scopeHash: string, key: string): Promise<unknown | null> | Public method; parameters and return type are shown in the signature. |
set | method | set(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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
complete | method | complete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean> | Public method; parameters and return type are shown in the signature. |
constructor | constructor | (): InMemoryMemoryIndexOutboxStore | Creates an instance of this class. |
enqueue | method | enqueue(record: MemoryIndexOutboxRecord): Promise<void> | Public method; parameters and return type are shown in the signature. |
fail | method | fail(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. |
lease | method | lease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]> | Public method; parameters and return type are shown in the signature. |
list | method | list(): Promise<MemoryIndexOutboxRecord[]> | Public method; parameters and return type are shown in the signature. |
renew | method | renew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean> | Public method; parameters and return type are shown in the signature. |
transaction | method | transaction<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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
capabilities | property | readonly capabilities: MemoryPersistenceCapabilities | Public property; its type, readonly modifier and optionality are shown in the signature. |
constructor | constructor | (recordStore?: ManagedMemoryRecordStore, outboxStore?: MemoryIndexOutboxStore): InMemoryMemoryPersistenceUnitOfWork | Creates an instance of this class. |
outboxStore | property | readonly outboxStore: MemoryIndexOutboxStore | Public property; its type, readonly modifier and optionality are shown in the signature. |
recordStore | property | readonly recordStore: ManagedMemoryRecordStore | Public property; its type, readonly modifier and optionality are shown in the signature. |
transaction | method | transaction<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
export declare function matchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): boolean;Call signature
matchesFilter(record: ManagedMemoryRecord, filter?: MemorySearchFilter): booleanParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
record | ManagedMemoryRecord<unknown> | Yes | Required parameter; accepted values are defined by the type column. |
filter | MemorySearchFilter | No | Optional 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
export interface ManagedMemoryRecordQuery {
scope: ManagedMemoryScope;
filter?: MemorySearchFilter;
includeSuperseded?: boolean;
includeInvalidated?: boolean;
limit?: number;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
filter | property | filter?: MemorySearchFilter | Public property; its type, readonly modifier and optionality are shown in the signature. |
includeInvalidated | property | includeInvalidated?: boolean | Public property; its type, readonly modifier and optionality are shown in the signature. |
includeSuperseded | property | includeSuperseded?: boolean | Public property; its type, readonly modifier and optionality are shown in the signature. |
limit | property | limit?: number | Public property; its type, readonly modifier and optionality are shown in the signature. |
scope | property | scope: ManagedMemoryScope | Public 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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
create | method | create(record: ManagedMemoryRecord): Promise<ManagedMemoryRecord> | Public method; parameters and return type are shown in the signature. |
createVersion | method | createVersion(record: ManagedMemoryRecord, expectedRevision: number): Promise<ManagedMemoryRecord> | Public method; parameters and return type are shown in the signature. |
delete | method | delete(id: string, scope: ManagedMemoryScope): Promise<void> | Public method; parameters and return type are shown in the signature. |
get | method | get(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord | null> | Public method; parameters and return type are shown in the signature. |
getVersionByScopeHash | method | getVersionByScopeHash(id: string, versionId: string, scopeHash: string): Promise<ManagedMemoryRecord | null> | Public method; parameters and return type are shown in the signature. |
health | method | health(): Promise<ProviderHealth> | Public method; parameters and return type are shown in the signature. |
history | method | history(id: string, scope: ManagedMemoryScope): Promise<ManagedMemoryRecord[]> | Public method; parameters and return type are shown in the signature. |
list | method | list(request: ManagedMemoryRecordQuery): Promise<ManagedMemoryRecord[]> | Public method; parameters and return type are shown in the signature. |
transaction | method | transaction<T>(fn: (store: ManagedMemoryRecordStore) => Promise<T>): Promise<T> | Public method; parameters and return type are shown in the signature. |
updateStatus | method | updateStatus(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
export interface MemoryIdempotencyStore {
get(scopeHash: string, key: string): Promise<unknown | null>;
set(scopeHash: string, key: string, result: unknown): Promise<void>;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
get | method | get(scopeHash: string, key: string): Promise<unknown | null> | Public method; parameters and return type are shown in the signature. |
set | method | set(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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
action | property | action: "delete" | "reindex" | "upsert" | Public property; its type, readonly modifier and optionality are shown in the signature. |
attempts | property | attempts: number | Public property; its type, readonly modifier and optionality are shown in the signature. |
availableAt | property | availableAt: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
completedVectorStoreIds | property | completedVectorStoreIds?: string[] | Public property; its type, readonly modifier and optionality are shown in the signature. |
createdAt | property | createdAt: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
fencingToken | property | fencingToken?: number | Public property; its type, readonly modifier and optionality are shown in the signature. |
id | property | id: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
lastError | property | lastError?: import("/Users/erwin/Downloads/codespace/Hypha/packages/memory/dist/contracts").NormalizedMemoryError | Public property; its type, readonly modifier and optionality are shown in the signature. |
leaseExpiresAt | property | leaseExpiresAt?: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
leaseOwner | property | leaseOwner?: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
leaseToken | property | leaseToken?: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
memoryId | property | memoryId: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
memoryRevision | property | memoryRevision?: number | Logical Memory revision; distinct from this outbox record's lease fencing token. |
memoryVersionId | property | memoryVersionId: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
operationId | property | operationId: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
scopeHash | property | scopeHash: string | Public property; its type, readonly modifier and optionality are shown in the signature. |
state | property | state: "completed" | "failed" | "processing" | "pending" | "dead_letter" | "partial" | Public property; its type, readonly modifier and optionality are shown in the signature. |
targetVectorStoreIds | property | targetVectorStoreIds: string[] | Public property; its type, readonly modifier and optionality are shown in the signature. |
updatedAt | property | updatedAt: string | Public 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
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
| Member | Kind | Signature | Description |
|---|---|---|---|
complete | method | complete(id: string, owner: string, leaseToken: string, now: string): Promise<boolean> | Public method; parameters and return type are shown in the signature. |
enqueue | method | enqueue(record: MemoryIndexOutboxRecord): Promise<void> | Public method; parameters and return type are shown in the signature. |
fail | method | fail(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. |
lease | method | lease(owner: string, now: string, leaseUntil: string, limit: number): Promise<MemoryIndexOutboxRecord[]> | Public method; parameters and return type are shown in the signature. |
list | method | list(): Promise<MemoryIndexOutboxRecord[]> | Public method; parameters and return type are shown in the signature. |
renew | method | renew(id: string, owner: string, leaseToken: string, now: string, leaseUntil: string): Promise<boolean> | Public method; parameters and return type are shown in the signature. |
transaction | method | transaction<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
export interface MemoryPersistenceCapabilities {
durable: boolean;
atomicRecordAndOutbox: boolean;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
atomicRecordAndOutbox | property | atomicRecordAndOutbox: boolean | Public property; its type, readonly modifier and optionality are shown in the signature. |
durable | property | durable: boolean | Public 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
export interface MemoryPersistenceTransaction {
recordStore: ManagedMemoryRecordStore;
outboxStore: MemoryIndexOutboxStore;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
outboxStore | property | outboxStore: MemoryIndexOutboxStore | Public property; its type, readonly modifier and optionality are shown in the signature. |
recordStore | property | recordStore: ManagedMemoryRecordStore | Public 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
export interface MemoryPersistenceUnitOfWork extends MemoryPersistenceTransaction {
capabilities: MemoryPersistenceCapabilities;
transaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T>;
}Contract members
| Member | Kind | Signature | Description |
|---|---|---|---|
capabilities | property | capabilities: MemoryPersistenceCapabilities | Public property; its type, readonly modifier and optionality are shown in the signature. |
outboxStore | property | outboxStore: MemoryIndexOutboxStore | Public property; its type, readonly modifier and optionality are shown in the signature. |
recordStore | property | recordStore: ManagedMemoryRecordStore | Public property; its type, readonly modifier and optionality are shown in the signature. |
transaction | method | transaction<T>(fn: (stores: MemoryPersistenceTransaction) => Promise<T>): Promise<T> | Public method; parameters and return type are shown in the signature. |
