Quantcast
Channel: Adding and retrieving Data sets to Redis using StackExchange.Redis - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by thepirat000 for Adding and retrieving Data sets to Redis using StackExchange.Redis

$
0
0

To set multiple values in a hash you can call the following HashSet method overload:

ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
IDatabase db = redis.GetDatabase();
db.HashSet("user:user1", new HashEntry[] { new HashEntry("12", "13"), new HashEntry("14", "15") });

Viewing all articles
Browse latest Browse all 2

Trending Articles