Setu-TS
    Preparing search index...

    Function fromNodeRedis

    • Wraps a single-node node-redis client for every Setu-TS Redis client option. Commands connect lazily and normalize RESP3 maps into ioredis's raw arrays. Each call is bounded independently; a timed-out command may still run on Redis. The bound must exceed a streams consumer's blocking read duration.

      Parameters

      Returns RedisAdapter

      One adapter; use a separate wrapped duplicate for pub/sub

      If commandTimeoutMs is outside the finite timer range

      const client = fromNodeRedis(createClient({ url }), { commandTimeoutMs: 1000 });
      await client.set('key', 'value', 'EX', 60);
      await client.quit();

      // Loaded on first use, so an instrumentation registered by then traces it.
      const traced = fromNodeRedis(async () => (await import('redis')).createClient({ url }));

      0.11.0