Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

D1SessionDriverOptions

interfaz

Opciones de D1SessionDriver.

ts
import type { D1SessionDriverOptions } from "@meekojs/meeko/cloudflare";

Source code src/cloudflare.ts:1137

Declaración #

ts
interface D1SessionDriverOptions {
	readonly table?: string
	readonly rateLimitTable?: string
}

Example #

ts
import { D1SessionDriver } from "@meekojs/meeko/cloudflare";

const driver = new D1SessionDriver(env.DB, { table: "app_sessions" });

Propiedades #

table #

propiedad sólo lectura opcional

readonly table?: string

Tabla creada con D1SessionDriver.schema(table). Por defecto, meeko_sessions.

rateLimitTable #

propiedad sólo lectura opcional

readonly rateLimitTable?: string

Tabla de los contadores de rateLimit, creada con D1SessionDriver.rateLimitSchema(table) (desde 1.7). Con ella, el driver implementa rateLimit y los límites se comparten entre aislados; sin ella, se cuentan en la memoria de cada aislado, como hasta 1.6.

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/cloudflare.ts