@stash-it/memory-adapter@0.2.1
latest
@stash-it/memory-adapter is a simple in-memory adapter that can be used with @stash-it
This package works with Node.js, BrowsersIt is unknown whether this package works with Cloudflare Workers, Deno, Bun
JSR Score
100%
Published
a day ago (0.2.1)
@stash-it/memory-adapter
@stash-it/memory-adapter
is a simple in-memory adapter that can be used with @stash-it/stash-it
.
Installation
npm
npm install @stash-it/memory-adapter
deno
deno add @stash-it/memory-adapter
yarn
yarn dlx jsr add @stash-it/memory-adapter
pnpm
pnpm dlx jsr add @stash-it/memory-adapter
bun
bunx jsr add @stash-it/memory-adapter
Usage
// Import stash-it main class. import { StashIt } from "@stash-it/stash-it"; import { MemoryAdapter } from "@stash-it/memory-adapter"; // Create an instance of the adapter. const adapter = new MemoryAdapter(); // And use it with stash-it. const stash = new StashIt(adapter);
License
MIT
Contribution
Feel free to open an issue or a pull request.
Add Package
deno add jsr:@stash-it/memory-adapter
Import symbol
import * as memory_adapter from "@stash-it/memory-adapter";
---- OR ----
Import directly with a jsr specifier
import * as memory_adapter from "jsr:@stash-it/memory-adapter";
Add Package
npx jsr add @stash-it/memory-adapter
Import symbol
import * as memory_adapter from "@stash-it/memory-adapter";
Add Package
yarn dlx jsr add @stash-it/memory-adapter
Import symbol
import * as memory_adapter from "@stash-it/memory-adapter";
Add Package
pnpm dlx jsr add @stash-it/memory-adapter
Import symbol
import * as memory_adapter from "@stash-it/memory-adapter";
Add Package
bunx jsr add @stash-it/memory-adapter
Import symbol
import * as memory_adapter from "@stash-it/memory-adapter";