{"action":"created","issue":{"url":"https://api.github.com/repos/mperham/dalli/issues/252","labels_url":"https://api.github.com/repos/mperham/dalli/issues/252/labels{/name}","comments_url":"https://api.github.com/repos/mperham/dalli/issues/252/comments","events_url":"https://api.github.com/repos/mperham/dalli/issues/252/events","html_url":"https://github.com/mperham/dalli/issues/252","id":6184645,"number":252,"title":"Fallback to actual block if server down","user":{"login":"International","id":1022918,"avatar_url":"https://avatars.githubusercontent.com/u/1022918?v=3","gravatar_id":"","url":"https://api.github.com/users/International","html_url":"https://github.com/International","followers_url":"https://api.github.com/users/International/followers","following_url":"https://api.github.com/users/International/following{/other_user}","gists_url":"https://api.github.com/users/International/gists{/gist_id}","starred_url":"https://api.github.com/users/International/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/International/subscriptions","organizations_url":"https://api.github.com/users/International/orgs","repos_url":"https://api.github.com/users/International/repos","events_url":"https://api.github.com/users/International/events{/privacy}","received_events_url":"https://api.github.com/users/International/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2012-08-13T07:54:07Z","updated_at":"2015-01-30T16:32:43Z","closed_at":"2013-05-27T20:37:00Z","body":"Imagine I have something like this:\n\n```ruby\nRails.cache.fetch(\"my_model_1\") { MyModel.find(1) }\n```\n\nOn Heroku, the memcachier server seems to die pretty randomly, and thus, it causes errors ( because of data being nil ). Is it possible to failover to actually perform a block's action if a server's not alive? I'd gladly trade performance to being able to run without such failures."},"comment":{"url":"https://api.github.com/repos/mperham/dalli/issues/comments/72228518","html_url":"https://github.com/mperham/dalli/issues/252#issuecomment-72228518","issue_url":"https://api.github.com/repos/mperham/dalli/issues/252","id":72228518,"user":{"login":"ksheurs","id":205055,"avatar_url":"https://avatars.githubusercontent.com/u/205055?v=3","gravatar_id":"","url":"https://api.github.com/users/ksheurs","html_url":"https://github.com/ksheurs","followers_url":"https://api.github.com/users/ksheurs/followers","following_url":"https://api.github.com/users/ksheurs/following{/other_user}","gists_url":"https://api.github.com/users/ksheurs/gists{/gist_id}","starred_url":"https://api.github.com/users/ksheurs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksheurs/subscriptions","organizations_url":"https://api.github.com/users/ksheurs/orgs","repos_url":"https://api.github.com/users/ksheurs/repos","events_url":"https://api.github.com/users/ksheurs/events{/privacy}","received_events_url":"https://api.github.com/users/ksheurs/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T16:32:43Z","updated_at":"2015-01-30T16:32:43Z","body":"will do!"}}