This commit is contained in:
DESalasC 2026-09-29 15:23:16 -05:00 • committed by GitHub
commit 2e120d1c4e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,11 +26,14 @@ export default class RedisStore extends Store {
async _get(key) {
await this.#connected;
const valueType = await this.#client.get(this.#keyOf(key) + '_t');
const value = await this.#client.get(
commandOptions({ returnBuffers: true }),
this.#keyOf(key)
);
const redisKey = this.#keyOf(key);
const [valueType, value] = await Promise.all([
this.#client.get(redisKey + '_t'),
this.#client.get(
commandOptions({ returnBuffers: true }),
redisKey
)
]);
if (!value) {
return null;