Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Add VersionString in redisManager.GetStats()
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 27, 2015
1 parent e16b5f2 commit 01a3573
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ServiceStack.Redis/PooledRedisClientManager.cs
Expand Up @@ -644,6 +644,8 @@ public void Start()

var ret = new Dictionary<string, string>
{
{"VersionString", "" + Text.Env.VersionString},

{"writeClientsPoolSize", "" + writeClientsPoolSize},
{"writeClientsCreated", "" + writeClientsCreated},
{"writeClientsWithExceptions", "" + writeClientsWithExceptions},
Expand Down
3 changes: 3 additions & 0 deletions src/ServiceStack.Redis/RedisManagerPool.cs
Expand Up @@ -325,11 +325,14 @@ public void DisposeWriteClient(RedisNativeClient client)

var ret = new Dictionary<string, string>
{
{"VersionString", "" + Text.Env.VersionString},

{"clientsPoolSize", "" + clientsPoolSize},
{"clientsCreated", "" + clientsCreated},
{"clientsWithExceptions", "" + clientsWithExceptions},
{"clientsInUse", "" + clientsInUse},
{"clientsConnected", "" + clientsConnected},

{"RedisResolver.ReadOnlyHostsCount", "" + RedisResolver.ReadOnlyHostsCount},
{"RedisResolver.ReadWriteHostsCount", "" + RedisResolver.ReadWriteHostsCount},
};
Expand Down

0 comments on commit 01a3573

Please sign in to comment.