use memcache to handle with caches

I think community's prefered way to indent is:

```ruby
config.cache_store = {
  :socket_timeout => 1.5,
  :socket_failure_delay => 0.2
}
```