Skip to content

Commit f790981

Browse files
committed
Add Type(key) API to both IRedisClient and IRedisNativeClient to avoid downcasting to concrete RedisNativeClient
1 parent b425168 commit f790981

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/ServiceStack.Interfaces/Redis/IRedisClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ public interface IRedisClient
111111
long DecrementValueBy(string key, int count);
112112
List<string> SearchKeys(string pattern);
113113

114+
string Type(string key);
114115
RedisKeyType GetEntryType(string key);
115116
string GetRandomKey();
116117
bool ExpireEntryIn(string key, TimeSpan expireIn);

src/ServiceStack.Interfaces/Redis/IRedisNativeClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public interface IRedisNativeClient
5959

6060
//Common key-value Redis operations
6161
byte[][] Keys(string pattern);
62+
string Type(string key);
6263
long Exists(string key);
6364
long StrLen(string key);
6465
void Set(string key, byte[] value);

0 commit comments

Comments
 (0)