feat(redis): search keys by value

This commit is contained in:
t8y2 committed 2026-05-18 21:27:47 +08:00
1 parent da00405e10
commit ea5e15612f
14 files changed
+260 -12

No files matched your search

@@ -0,0 +1,13 @@
import { strict as assert } from "node:assert";
import { readFileSync } from "node:fs";
import test from "node:test";
test("Redis browser exposes key/value search modes", () => {
const source = readFileSync("apps/desktop/src/components/redis/RedisKeyBrowser.vue", "utf8");
assert.match(source, /type RedisSearchMode = "key" \| "value"/);
assert.match(source, /searchMode\s*=\s*ref<RedisSearchMode>\("key"\)/);
assert.match(source, /redisScanValues/);
assert.match(source, /redis\.searchByKey/);
assert.match(source, /redis\.searchByValue/);
});