DialCache TypeScript API - v0.26.0
    Preparing search index...

    Function createValkeyGlideDialCacheClient

    • Wrap a caller-owned GLIDE connection. The returned adapter is stateless — it owns no native handles and needs no disposal — and preserves the connection's requestTimeout. Pass the same GLIDE module namespace used to create the client so native Batch objects come from that client's runtime. Only direct GlideClient and GlideClusterClient instances are accepted; wrappers should implement DialCacheRedisClient directly. A request timeout bounds client waiting but is not server-side command cancellation. GLIDE's current command API has no per-invocation signal, so DialCache's core read deadline may return before this adapter's invocation settles. Tracked standalone reads use a one-command primary batch, while tracked cluster reads route MGET explicitly to the slot primary, so replica lag cannot hide an invalidation watermark. Every write is one native SET of a complete client-stamped frame, routed to the slot primary for cluster clients. Invalidation dispatches as EVALSHA by its source SHA1 and retries any rejection once by re-sending the source as EVAL, which also repopulates a flushed script cache. When that retry also fails, the original rejection is attached as the retry error's cause unless it already carries one.

      Type Parameters

      • TDecoder

      Returns DialCacheRedisClient