I have a Model class -Person
with respective properties.
I want to add a list of person (object) inside a list and set the list as value for a key.
I am using servicestack.redis
driver.
I saw few examples where IRedisList<>
has been used.I want to know whether we can insert a redislist
inside a value parameter because i found that setentry function
expects a string for value parameter.
Asked
Active
Viewed 4,818 times
1

VVN
- 1,607
- 2
- 16
- 25

kaarthick raman
- 793
- 2
- 13
- 41
1 Answers
0
You can serialize your list (for example JSON string) and add in Redis like normal way, or you can use ServiceStack.Redis that give you ability to work with POCO objects that you can find StackOverFlow question in this How to store list element in Redis cache.