( options?: RedisClientOptions<M, F, S, RESP, TYPE_MAPPING> )
| 47 | > = GenericRedisClientType<RedisDefaultModules & M, F, S, RESP, TYPE_MAPPING>; |
| 48 | |
| 49 | export 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 | |
| 67 | export function createClientPool< |
| 68 | M extends RedisModules = {}, |
no outgoing calls