mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
16 lines
304 B
TypeScript
16 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),
|
|
});
|