@stash-it/memory-adapter
v0.2.0
Published
![logo-stash-it-color-dark 2x](https://user-images.githubusercontent.com/1819138/30385483-99fd209c-98a7-11e7-85e2-595791d8d894.png)
Downloads
3
Maintainers
Readme
@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.