Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* wip * Worked on phrasing etc for v5 doc changes. * Removed quite repetition of 'Rather' * Update v4-to-v5.md * Update v4-to-v5.md * Update v4-to-v5.md * WIP * WIP * clean SET command * some more commands, multi.exec<'typed'> * "typed" multi * WIP * upgrade deps * wip * wip * fix #2469 * wip * npm update * wip * wip * wip * wip * some tests * tests.yml * wip * wip * merge master into v5 * some more commands * some more commands * WIP * Release client@2.0.0-next.1 --------- Co-authored-by: Simon Prickett <simon@redislabs.com>
- Loading branch information
Showing
540 changed files
with
20,416 additions
and
17,721 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Redis from 'ioredis'; | ||
|
||
export default async (host) => { | ||
const client = new Redis({ | ||
host, | ||
lazyConnect: true, | ||
enableAutoPipelining: true | ||
}); | ||
|
||
await client.connect(); | ||
|
||
return { | ||
benchmark() { | ||
return client.ping(); | ||
}, | ||
teardown() { | ||
return client.disconnect(); | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { createClient } from 'redis-local'; | ||
|
||
export default async (host) => { | ||
const client = createClient({ | ||
socket: { | ||
host | ||
}, | ||
RESP: 2 | ||
}); | ||
|
||
await client.connect(); | ||
|
||
return { | ||
benchmark() { | ||
return client.ping(); | ||
}, | ||
teardown() { | ||
return client.disconnect(); | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { createClient } from 'redis-local'; | ||
import PING from 'redis-local/dist/lib/commands/PING.js'; | ||
|
||
export default async (host) => { | ||
const client = createClient({ | ||
socket: { | ||
host | ||
}, | ||
RESP: 3, | ||
modules: { | ||
module: { | ||
ping: PING.default | ||
} | ||
} | ||
}); | ||
|
||
await client.connect(); | ||
|
||
return { | ||
benchmark() { | ||
return client.withFlags({}).module.ping(); | ||
}, | ||
teardown() { | ||
return client.disconnect(); | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { createClient } from 'redis-local'; | ||
import PING from 'redis-local/dist/lib/commands/PING.js'; | ||
|
||
export default async (host) => { | ||
const client = createClient({ | ||
socket: { | ||
host | ||
}, | ||
RESP: 3, | ||
modules: { | ||
module: { | ||
ping: PING.default | ||
} | ||
} | ||
}); | ||
|
||
await client.connect(); | ||
|
||
return { | ||
benchmark() { | ||
return client.module.ping(); | ||
}, | ||
teardown() { | ||
return client.disconnect(); | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { createClient } from 'redis-local'; | ||
|
||
export default async (host) => { | ||
const client = createClient({ | ||
socket: { | ||
host | ||
}, | ||
RESP: 3 | ||
}); | ||
|
||
await client.connect(); | ||
|
||
return { | ||
benchmark() { | ||
return client.ping(); | ||
}, | ||
teardown() { | ||
return client.disconnect(); | ||
} | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.