I’m storing dateTime info for devices based on a unique identifier:
redisClient.Set("lastDateTime:ID000011112222", DateTime.Now);
I’m storing other info like IP Address:
redisClient.Set("ipAddress:ID000011112222", "0.0.0.0");
Now I want to get a set of the keys/values for the lastDateTime.
I can get all of the keys:
var keysSet = redisClient.SearchKeys("lastDateTime:*");
How can I get a set (or list) of all of the keys and their values?
I ended up going with a Hash,
To set a value:
To get a dictionary of all ID’s and values: