MCPcopy
hub / github.com/redis/node-redis / createClient

Function createClient

packages/redis/index.ts:49–65  ·  view source on GitHub ↗
(
  options?: RedisClientOptions<M, F, S, RESP, TYPE_MAPPING>
)

Source from the content-addressed store, hash-verified

47> = GenericRedisClientType<RedisDefaultModules & M, F, S, RESP, TYPE_MAPPING>;
48
49export function createClient<
50 M extends RedisModules = {},
51 F extends RedisFunctions = {},
52 S extends RedisScripts = {},
53 RESP extends RespVersions = 3,
54 TYPE_MAPPING extends TypeMapping = {}
55>(
56 options?: RedisClientOptions<M, F, S, RESP, TYPE_MAPPING>
57): RedisClientType<M, F, S, RESP, TYPE_MAPPING> {
58 return genericCreateClient({
59 ...options,
60 modules: {
61 ...modules,
62 ...(options?.modules as M)
63 }
64 }) as RedisClientType<M, F, S, RESP, TYPE_MAPPING>;
65}
66
67export function createClientPool<
68 M extends RedisModules = {},

Callers 15

createRedisClientFunction · 0.90
metrics.spec.tsFile · 0.90
cleanupAclUsersMethod · 0.90
testWithClientMethod · 0.90
testWithTlsClientMethod · 0.90
spawnRedisSentinelFunction · 0.90
cmds-cnxmgmt.jsFile · 0.90
cmds-generic.jsFile · 0.90
dt-bitmap.jsFile · 0.90
cmds-servermgmt.jsFile · 0.90

Calls

no outgoing calls

Tested by 2

setupFunction · 0.68
setupTestClientFunction · 0.68