mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-10 00:54:20 +01:00
17 lines
304 B
TypeScript
17 lines
304 B
TypeScript
import { LRUCache } from 'lru-cache';
|
|
|
|
import { Time } from '@/utils/time.ts';
|
|
|
|
export interface DittoUpload {
|
|
id: string;
|
|
pubkey: string;
|
|
url: string;
|
|
tags: string[][];
|
|
uploadedAt: Date;
|
|
}
|
|
|
|
export const dittoUploads = new LRUCache<string, DittoUpload>({
|
|
max: 1000,
|
|
ttl: Time.hours(6),
|
|
});
|