diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-06-06 02:14:20 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-06-09 11:02:36 -0400 |
| commit | 9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c (patch) | |
| tree | ad9b253f6b1b92acd7abb845807e7080969016f7 | |
| parent | implement QuantumKVCache.add and QuantumKVCache.addMany (diff) | |
| download | sharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.tar.gz sharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.tar.bz2 sharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.zip | |
use addMany instead of setMany when populating quantum caches from DB
| -rw-r--r-- | packages/backend/src/core/CacheService.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/src/core/CacheService.ts b/packages/backend/src/core/CacheService.ts index 6e979130a0..00d97c7e1d 100644 --- a/packages/backend/src/core/CacheService.ts +++ b/packages/backend/src/core/CacheService.ts @@ -342,7 +342,7 @@ export class CacheService implements OnApplicationShutdown { } // Update cache to speed up future calls - await this.userFollowingsCache.setMany(toCache.entries()); + this.userFollowingsCache.addMany(toCache); } return followings; @@ -395,7 +395,7 @@ export class CacheService implements OnApplicationShutdown { } // Update cache to speed up future calls - await this.userBlockedCache.setMany(toCache.entries()); + this.userBlockedCache.addMany(toCache); } return blockers; |