ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost"); IDatabase db = redis.GetDatabase(); db.HashSet("user:user1", new HashEntry[] { new HashEntry("12", "13"), new HashEntry("14", "15") });
References
https://stackoverflow.com/questions/32708881/adding-and-retrieving-data-sets-to-redis-using-stackexchange-redis
https://redis.io/commands/HMSET
https://redis.io/commands/hset