Skip to content

createCacheEntrySchema

createCacheEntrySchema(table?): EntitySchema<CacheEntry>

Defined in: packages/ddd-mikro-orm/src/cache/cache-entry.ts:66

MikroORM entity schema for CacheEntry. Register it with the ORM that backs MikroOrmCache; pass table when the table is not named cache.

expires_at is a bigint column, because epoch milliseconds overflow a 32-bit integer.

string = 'cache'

Table name, optionally schema-qualified. Default 'cache'.

EntitySchema<CacheEntry>