elysia-fs-cache
v0.1.7
Published
File system cache for elysia backend
Downloads
503
Readme
elysia-fs-cache
To install:
bun install elysia-fs-cache
Example:
import { Elysia } from "elysia";
import { cache } from "elysia-fs-cache";
export const app = new Elysia()
.use(cache({ maxAge: 1000, folderPath: "/cache" }))
.get("/", ({ cache }) => {
await cache.set({ hello: "world" });
return cache.get();
});
This project was created to scale request based local cache for my elysia backend @helium.