1

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.

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.