Skip to content

feat: add redis driver identification#1068

Open
vchomakov wants to merge 2 commits intocaching-tools:canaryfrom
vchomakov:feat/client-info-tag
Open

feat: add redis driver identification#1068
vchomakov wants to merge 2 commits intocaching-tools:canaryfrom
vchomakov:feat/client-info-tag

Conversation

@vchomakov
Copy link

Summary

Adds getClientInfoTag helper function for Redis driver identification.

Changes

  • Added getClientInfoTag() helper that returns a client info tag like neshca-cache-handler_v1.9.0
  • Added tests for the helper
  • Updated documentation examples to use the new helper

Why

This helps identify the library using the Redis client in CLIENT LIST output, useful for debugging and monitoring Redis connections.

Usage

import { getClientInfoTag } from '@neshca/cache-handler/helpers';

const client = createClient({
  url: 'redis://localhost:6379',
  clientInfoTag: getClientInfoTag(),
});

@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2026

🦋 Changeset detected

Latest commit: c970a50

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@neshca/cache-handler Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant