summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2025-06-06 02:14:20 -0400
committerHazelnoot <acomputerdog@gmail.com>2025-06-09 11:02:36 -0400
commit9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c (patch)
treead9b253f6b1b92acd7abb845807e7080969016f7 /packages/backend/src/core
parentimplement QuantumKVCache.add and QuantumKVCache.addMany (diff)
downloadsharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.tar.gz
sharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.tar.bz2
sharkey-9853a4f3bdf39e2e7b05765a5099e4d2554b1d2c.zip
use addMany instead of setMany when populating quantum caches from DB
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/CacheService.ts4
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;