fix(backend): memory leak in memory caches (#14363)
* encapsulate `MemoryKVCache<T>` * remove infinity caches * encapsulate other caches * add missing awaits to internally synchronize caches * implement pull-through caching * tune cache lifetimes * optimize cache GC by stopping early * summarize changes in CHANGELOG.md * Fix timeout comments Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> * add comments about awaiting the redis write --------- Co-authored-by: かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>
Showing
- CHANGELOG.md 2 additions, 0 deletionsCHANGELOG.md
- packages/backend/src/core/AvatarDecorationService.ts 1 addition, 1 deletionpackages/backend/src/core/AvatarDecorationService.ts
- packages/backend/src/core/CacheService.ts 6 additions, 6 deletionspackages/backend/src/core/CacheService.ts
- packages/backend/src/core/CustomEmojiService.ts 6 additions, 6 deletionspackages/backend/src/core/CustomEmojiService.ts
- packages/backend/src/core/RelayService.ts 1 addition, 1 deletionpackages/backend/src/core/RelayService.ts
- packages/backend/src/core/RoleService.ts 2 additions, 4 deletionspackages/backend/src/core/RoleService.ts
- packages/backend/src/core/UserKeypairService.ts 1 addition, 1 deletionpackages/backend/src/core/UserKeypairService.ts
- packages/backend/src/core/activitypub/ApDbResolverService.ts 2 additions, 2 deletionspackages/backend/src/core/activitypub/ApDbResolverService.ts
- packages/backend/src/misc/cache.ts 79 additions, 62 deletionspackages/backend/src/misc/cache.ts
- packages/backend/src/queue/processors/DeliverProcessorService.ts 1 addition, 1 deletion...s/backend/src/queue/processors/DeliverProcessorService.ts
- packages/backend/src/server/NodeinfoServerService.ts 1 addition, 1 deletionpackages/backend/src/server/NodeinfoServerService.ts
- packages/backend/src/server/api/AuthenticateService.ts 1 addition, 1 deletionpackages/backend/src/server/api/AuthenticateService.ts
Loading
Please register or sign in to comment