Allow testing without a local memcached installation

This switches the cache backend to `LocMemCache`, which should be sufficient for testing (unless there are other reasons to use Memcached specifically?).