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

Commit c8f4d40

Browse files
committed
Add docs mentioning conversion behavior can be customized with RedisClient.ConvertToHashFn
1 parent 1d6cdd9 commit c8f4d40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ServiceStack.Redis/RedisClient.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,10 @@ public T GetFromHash<T>(object id)
736736
return GetAllEntriesFromHash(key).ToJson().FromJson<T>();
737737
}
738738

739+
/// <summary>
740+
/// Store object fields as a dictionary of values in a Hash value.
741+
/// Conversion to Dictionary can be customized with RedisClient.ConvertToHashFn
742+
/// </summary>
739743
public void StoreAsHash<T>(T entity)
740744
{
741745
var key = UrnKey(entity);

0 commit comments

Comments
 (0)