librelist archives

« back to archive

About bamboo deletion action

About bamboo deletion action

Tang Daogang
2011-11-11 @ 08:46
For website, data is its most important thing.

So, be careful for deletion action. At this point, we want supply some
protecting method in bamboo, to help the data's backup and restore.

Three things need to do:

   1. In bamboo, instance:del() performs actually redis rename command (add
   a prefix string), supply another deepdel() API to remove the key-value pair
   completely ;
   2. backup redis' db file to some backup directory every 1 day, and
   remind server manager to copy to other backup machine;
   3. supply an API restore(), to restore the deleted key to normal key,
   and treat the model:__index cache correctly.

Anything else?

Nothing is impossible.