I use capistrano to deploy my app to a machine that uses memcache. I want capistrano to clear memcache when it deploys a new version of the site.
Take a look at this GIST solves the problem: https://gist.github.com/matthuhiggins/668744