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

Commit 1026c44

Browse files
committed
Add redisInfo filter
1 parent e2b6e3a commit 1026c44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ServiceStack.Redis/TemplateRedisFilters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ public List<RedisSearchResult> redisSearchKeys(TemplateScopeContext scope, strin
138138
return searchResults.Results;
139139
}
140140

141+
public Dictionary<string, string> redisInfo(TemplateScopeContext scope) => redisInfo(scope, null);
142+
public Dictionary<string, string> redisInfo(TemplateScopeContext scope, object options) => exec(r => r.Info, scope, options);
143+
141144
public string redisConnectionString(TemplateScopeContext scope) => exec(r => $"{r.Host}:{r.Port}?db={r.Db}", scope, null);
142145

143146
public Dictionary<string, object> redisConnection(TemplateScopeContext scope) => exec(r => new Dictionary<string, object>

0 commit comments

Comments
 (0)