mirror of
https://github.com/unjs/unstorage.git
synced 2025-12-08 21:26:09 +00:00
514 B
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(),
});