arpit7275 / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Feature Request] Move & Copy Db #532

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I want to move db2 to db1 or copy db2 to db1.

move:just change the db number,the old data will be flush.
copy:have an option{overwrite|flush},
     overwrite:the value will be overwrite if the key exists before.
     flush:flush current db before copy.
the copy command should have data shadow,the data will not be effective until 
the command executed complete(In order to transition
).

thanks!

Original issue reported on code.google.com by XujinZh...@gmail.com on 22 Apr 2011 at 4:22