Matt Kane edb651ca1e
docs: add driver name to each usage section (#533)
Co-authored-by: Pooya Parsa <pooya@pi0.io>
2024-12-19 22:10:40 +01:00

514 B

icon
bi:memory

Memory

Keep data in memory.

Keeps data in memory using Map. (default storage)

Usage

Driver name: memory

::note By default, it is mounted at the top level, so it's unlikely that you will need to mount it again. ::

import { createStorage } from "unstorage";
import memoryDriver from "unstorage/drivers/memory";

const storage = createStorage({
  driver: memoryDriver(),
});