mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 12:36:57 +00:00
use addMany instead of setMany when populating quantum caches from DB
This commit is contained in:
parent
b7624666d6
commit
9853a4f3bd
1 changed files with 2 additions and 2 deletions
|
@ -342,7 +342,7 @@ export class CacheService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update cache to speed up future calls
|
// Update cache to speed up future calls
|
||||||
await this.userFollowingsCache.setMany(toCache.entries());
|
this.userFollowingsCache.addMany(toCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
return followings;
|
return followings;
|
||||||
|
@ -395,7 +395,7 @@ export class CacheService implements OnApplicationShutdown {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update cache to speed up future calls
|
// Update cache to speed up future calls
|
||||||
await this.userBlockedCache.setMany(toCache.entries());
|
this.userBlockedCache.addMany(toCache);
|
||||||
}
|
}
|
||||||
|
|
||||||
return blockers;
|
return blockers;
|
||||||
|
|
Loading…
Add table
Reference in a new issue