Skip to content

MemVault

typescript
import { MemVault } from "memvault"

Constructor

typescript
new MemVault({ db: prisma.memvaultMemory })
OptionTypeDescription
dbMemvaultPrismaDelegateThe 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.

Released under the MIT License.