mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
memorelay: increase LRU limits
This commit is contained in:
parent
da6738a405
commit
b3c7e22052
1 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ import { getFilterId, type GetFiltersOpts, getMicroFilters, isMicrofilter } from
|
||||||
const debug = Debug('ditto:memorelay');
|
const debug = Debug('ditto:memorelay');
|
||||||
|
|
||||||
const events = new LRUCache<string, Event>({
|
const events = new LRUCache<string, Event>({
|
||||||
max: 1000,
|
max: 3000,
|
||||||
maxEntrySize: 1000,
|
maxEntrySize: 5000,
|
||||||
sizeCalculation: (event) => JSON.stringify(event).length,
|
sizeCalculation: (event) => JSON.stringify(event).length,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue