1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

chore(examples): fix examples for v5 (#2938)

This commit is contained in:
Nikolay Karadzhov
2025-05-05 11:35:41 +03:00
committed by GitHub
parent bd5c230c62
commit 2c9ad2e772
20 changed files with 133 additions and 75 deletions

View File

@@ -12,6 +12,12 @@ const client = await createClient({
console.log('Redis Client Error', err);
}).connect();
// Make sure the source key exists
await client.set('source', 'value');
// Make sure destination doesnt exist
await client.del('destination');
// DUMP a specific key into a local variable
const dump = await client.dump('source');