CouchDb Expired Worker
This worker can be launched by cron or other scheduler to run daily and bulk deletions all expired documents from your couchdb databases.
npm install expired -g
First you want to create a config file, this file will list the server and all of your databases that you wish to manage: (eg. expired-config.json)
Config File Example
add command to crontab to run daily
crontab -e 0 3 * * * expired ~/expired-config.json
Now every day on the 3rd hour the expire job should run.
- fork and clone
- Pull Requests welcome, please include tests
- add test for design doc creation
- add test for multiple databases