--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
In general however is a bad idea to use the same Redis server for
multiple applications: for this use case the right thing to do is
spawning multiple instances, one per application.
When instead namespacing in the context of the same application is
needed, either use a prefix, or try to make your design better in
order to avoid namespaces.
For instance in order to write an application supporting multiple
blogs at the same time, the idea of namespacing per blog is IMHO a
broken design, and a good design is instead to have a blog ID and have
all the rest using this blog ID like: comments.blog:<id>.post:<id> or
alike.
Cheers,
Salvatore
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele
Regards,
- Josiah
The best way to implement would be to run, for each key on the database,
RENAME <key> prefix:<key>
MOVE prefix:<key> <target db>
To fetch a list of all the keys on the source database you should
SELECT <source db>
KEYS *