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

Commit 6f7ffab

Browse files
committed
Add GetEntry (dual of SetEntry)
1 parent d9d35a3 commit 6f7ffab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ServiceStack.Redis/RedisClient.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,14 @@ public void SetAll(Dictionary<string, string> map)
246246
base.MSet(keyBytes, valBytes);
247247
}
248248

249+
/// <summary>
250+
/// Alias for GetValue
251+
/// </summary>
252+
public string GetEntry(string key)
253+
{
254+
return GetValue(key);
255+
}
256+
249257
public string GetValue(string key)
250258
{
251259
var bytes = Get(key);

0 commit comments

Comments
 (0)