Finally, I got a design that works very well and very fast.
This is the general design when using Redis.
For example, if we have post, which has fields: title, created_date, user_id.
We can store it like this
post:$id:title --> "Example Title"
post:$id:created_date --> "2011-10-10"
post:$id:user_id --> 5
But when you want to query it, please use mget
You will get the result at once.
Redis has a big problem with network latency and we can use mget to minimize the number of queries.