MemVault
typescript
import { MemVault } from "memvault"Constructor
typescript
new MemVault({ db: prisma.memvaultMemory })| Option | Type | Description |
|---|---|---|
db | MemvaultPrismaDelegate | The Prisma delegate for the MemvaultMemory model |
Methods
vault.tenant(tenantId)
Returns a TenantVault scoped to the given tenant ID.
typescript
const tenant = vault.tenant("user-123")tenantId must be a non-empty string. All operations on the returned tenant are isolated to that ID.