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

Commit 01a3573

Browse files
committed
Add VersionString in redisManager.GetStats()
1 parent e16b5f2 commit 01a3573

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ServiceStack.Redis/PooledRedisClientManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,8 @@ public Dictionary<string, string> GetStats()
644644

645645
var ret = new Dictionary<string, string>
646646
{
647+
{"VersionString", "" + Text.Env.VersionString},
648+
647649
{"writeClientsPoolSize", "" + writeClientsPoolSize},
648650
{"writeClientsCreated", "" + writeClientsCreated},
649651
{"writeClientsWithExceptions", "" + writeClientsWithExceptions},

src/ServiceStack.Redis/RedisManagerPool.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,14 @@ public Dictionary<string, string> GetStats()
325325

326326
var ret = new Dictionary<string, string>
327327
{
328+
{"VersionString", "" + Text.Env.VersionString},
329+
328330
{"clientsPoolSize", "" + clientsPoolSize},
329331
{"clientsCreated", "" + clientsCreated},
330332
{"clientsWithExceptions", "" + clientsWithExceptions},
331333
{"clientsInUse", "" + clientsInUse},
332334
{"clientsConnected", "" + clientsConnected},
335+
333336
{"RedisResolver.ReadOnlyHostsCount", "" + RedisResolver.ReadOnlyHostsCount},
334337
{"RedisResolver.ReadWriteHostsCount", "" + RedisResolver.ReadWriteHostsCount},
335338
};

0 commit comments

Comments
 (0)