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

Function createSentinel

packages/redis/index.ts:126–142  ·  view source on GitHub ↗
(
  options: RedisSentinelOptions<M, F, S, RESP, TYPE_MAPPING>
)

Source from the content-addressed store, hash-verified

124> = genericRedisSentinelType<RedisDefaultModules & M, F, S, RESP, TYPE_MAPPING>;
125
126export function createSentinel<
127 M extends RedisModules = {},
128 F extends RedisFunctions = {},
129 S extends RedisScripts = {},
130 RESP extends RespVersions = 3,
131 TYPE_MAPPING extends TypeMapping = {}
132>(
133 options: RedisSentinelOptions<M, F, S, RESP, TYPE_MAPPING>
134): RedisSentinelType<M, F, S, RESP, TYPE_MAPPING> {
135 return genericCreateSentinel({
136 ...options,
137 modules: {
138 ...modules,
139 ...(options?.modules as M)
140 }
141 }) as RedisSentinelType<M, F, S, RESP, TYPE_MAPPING>;
142}
143

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected