It would be like StackOverflow: when you ask a question you need to provide some tags.
Currently I\'m querying the relational database store, but I believe that Redis
After googling a lot, I found a good post about something that fits what I was asking for here at StackOverflow:
Summary...:
sadd mysite:tags "stackoverflow" "stack-exchange" "question" "about-redis"
Yes, for example:
... and so on
sadd mysite:tags:index:s 1 2
sadd mysite:tags:index:st 1 2
sadd mysite:tags:index:sta 1 2
sadd mysite:tags:index:stack 1 2
sadd mysite:tags:index:stacko 1
... and so on.
It's about adding all tags that start with s, st...
sort mysite:tags:index:s by nosort get tags:*
This will output:
Or... sort mysite:tags:index:stack- by nosort get tags:*
...will output:
It seems to be a good solution!