Skip to main content

latest

TTL plugin for stash-it. Store your items with time to live.

This package works with Node.js, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
This package works with Browsers
JSR Score
70%
Published
2 days ago (0.0.3)
function createTtlPlugin
createTtlPlugin(options: PluginOptions): StashItPlugin

Create a plugin that adds TTL (time to live) to an item that gets stored.

Parameters

options: PluginOptions

Plugin options

Return Type

StashItPlugin

Add Package

deno add jsr:@stash-it/ttl-plugin

Import symbol

import { createTtlPlugin } from "@stash-it/ttl-plugin";

---- OR ----

Import directly with a jsr specifier

import { createTtlPlugin } from "jsr:@stash-it/ttl-plugin";

Add Package

npx jsr add @stash-it/ttl-plugin

Import symbol

import { createTtlPlugin } from "@stash-it/ttl-plugin";

Add Package

yarn dlx jsr add @stash-it/ttl-plugin

Import symbol

import { createTtlPlugin } from "@stash-it/ttl-plugin";

Add Package

pnpm dlx jsr add @stash-it/ttl-plugin

Import symbol

import { createTtlPlugin } from "@stash-it/ttl-plugin";

Add Package

bunx jsr add @stash-it/ttl-plugin

Import symbol

import { createTtlPlugin } from "@stash-it/ttl-plugin";