replace prefix code

This commit is contained in:
archer 2025-12-18 10:40:14 +08:00
parent 8c28f983cb
commit 4b15494107
No known key found for this signature in database
GPG Key ID: 4446499B846D4A9E

View File

@ -59,7 +59,7 @@ export const getAllKeysByPrefix = async (key: string) => {
cursor = nextCursor;
for (const k of keys) {
results.push(k.startsWith(prefix) ? k.slice(prefix.length) : k);
results.push(key.replace(FASTGPT_REDIS_PREFIX, ''));
}
} while (cursor !== '0');