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

Method legacy

packages/client/lib/client/index.ts:1119–1123  ·  view source on GitHub ↗

* Create the "legacy" (v3/callback) interface

()

Source from the content-addressed store, hash-verified

1117 * Create the "legacy" (v3/callback) interface
1118 */
1119 legacy(): RedisLegacyClientType {
1120 return new RedisLegacyClient(
1121 this as unknown as RedisClientType<M, F, S>
1122 ) as RedisLegacyClientType;
1123 }
1124
1125 /**
1126 * Create {@link RedisClientPool `RedisClientPool`} using this client as a prototype

Callers 1

testWithLegacyClientFunction · 0.80

Calls

no outgoing calls

Tested by 1

testWithLegacyClientFunction · 0.64