Fix lifetime for memcached
Merge pull request #1321 from jsbin/fix/lifetime-memcached

Fix lifetime for memcached