Fixes #181: Handle memcached errors gracefully.

Addresses issue #181 by wrapping the memcached calls in except blocks. Error handling is minimal as it mostly just bypasses the cache if there's an error.