You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
chore(examples): fix examples for v5 (#2938)
This commit is contained in:
committed by
GitHub
parent
bd5c230c62
commit
2c9ad2e772
@@ -13,9 +13,11 @@ function restrictFunctionCalls(fn, maxCalls) {
|
||||
|
||||
const fn = restrictFunctionCalls(transaction, 4);
|
||||
|
||||
const pool = await client.createPool();
|
||||
|
||||
async function transaction() {
|
||||
try {
|
||||
await client.executeIsolated(async (isolatedClient) => {
|
||||
await pool.execute(async (isolatedClient) => {
|
||||
await isolatedClient.watch('paymentId:1259');
|
||||
const multi = isolatedClient
|
||||
.multi()
|
||||
|
Reference in New Issue
Block a user