We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57bd135 commit 2e72519Copy full SHA for 2e72519
src/cache/query.ts
@@ -51,12 +51,13 @@ export async function getJson<T>(key: Key | DynamicKeyType) {
51
52
export async function setList(
53
key: Key | DynamicKeyType,
54
- values: any[],
+ list: any[],
55
expireAt: Date | null = null,
56
) {
57
const multi = cache.multi();
58
- for (const i in values) {
59
- values[i] = JSON.stringify(values[i]);
+ const values: any[] = []
+ for (const i in list) {
60
+ values[i] = JSON.stringify(list[i]);
61
}
62
multi.del(key);
63
multi.rPush(key, values);
0 commit comments