StackExchange / StackExchange.Redis

General purpose redis client
https://stackexchange.github.io/StackExchange.Redis/
Other
5.84k stars 1.5k forks source link

add new AddLibraryNameSuffix API for annotating connections with usage #2659

Closed mgravell closed 4 months ago

mgravell commented 4 months ago

This usage is intended to help people identify their connections by usage; for example, by using:

conn.AddLibraryNameSuffix("cache");

the connection will be advertised as (by default) SE.Redis-cache. In particular, this targets scenarios where the ConfigurationOptions may be shared between uses, or otherwise unavailable, so it is not possible to simply add this to ConfigurationOptions