mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
11 lines
370 B
TypeScript
11 lines
370 B
TypeScript
import { db } from '@/db.ts';
|
|
import { EventsDB } from '@/storages/events-db.ts';
|
|
import { Memorelay } from '@/storages/memorelay.ts';
|
|
|
|
/** SQLite database to store events this Ditto server cares about. */
|
|
const eventsDB = new EventsDB(db);
|
|
|
|
/** In-memory data store for cached events. */
|
|
const memorelay = new Memorelay({ max: 3000 });
|
|
|
|
export { eventsDB, memorelay };
|