deno.land / x / alosaur@v1.1.1 / examples / cache / app.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { App } from "alosaur/mod.ts";import { CoreArea } from "./areas/core.area.ts";import { MemoryResponseCacheStore, ResponseCacheStoreToken } from "alosaur/src/hooks/response-cache/mod.ts";
const app = new App({ areas: [CoreArea], logging: false, providers: [{ token: ResponseCacheStoreToken, useValue: new MemoryResponseCacheStore(), }],});
app.listen();
alosaur

Version Info

Tagged at
a year ago