fix(redis): copy displayed key name
This commit is contained in:
1 parent
46c0309c39
commit
60abe59a80
3 files changed
+31
-6
No files matched your search
@@ -29,6 +29,12 @@ export interface RedisKeyTreeRow {
|
||||
depth: number;
|
||||
}
|
||||
|
||||
export function redisKeyNameCopyText(node: RedisKeyTreeNode): string | null {
|
||||
// keyRaw is base64-encoded for backend roundtrips; copy the user-visible
|
||||
// Redis key name instead of the internal transport value.
|
||||
return node.kind === "leaf" ? node.fullKeyDisplay : null;
|
||||
}
|
||||
|
||||
function buildGroupId(db: number, pathSegments: string[]): string {
|
||||
return `group:${db}:${pathSegments.join("\u0000")}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user