{"action":"created","issue":{"url":"https://api.github.com/repos/tlevine/get-cached/issues/1","labels_url":"https://api.github.com/repos/tlevine/get-cached/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tlevine/get-cached/issues/1/comments","events_url":"https://api.github.com/repos/tlevine/get-cached/issues/1/events","html_url":"https://github.com/tlevine/get-cached/issues/1","id":71731121,"number":1,"title":"broken link","user":{"login":"jayvdb","id":15092,"avatar_url":"https://avatars.githubusercontent.com/u/15092?v=3","gravatar_id":"","url":"https://api.github.com/users/jayvdb","html_url":"https://github.com/jayvdb","followers_url":"https://api.github.com/users/jayvdb/followers","following_url":"https://api.github.com/users/jayvdb/following{/other_user}","gists_url":"https://api.github.com/users/jayvdb/gists{/gist_id}","starred_url":"https://api.github.com/users/jayvdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayvdb/subscriptions","organizations_url":"https://api.github.com/users/jayvdb/orgs","repos_url":"https://api.github.com/users/jayvdb/repos","events_url":"https://api.github.com/users/jayvdb/events{/privacy}","received_events_url":"https://api.github.com/users/jayvdb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-04-28T23:05:12Z","updated_at":"2015-04-29T08:30:46Z","closed_at":null,"body":"The URL in the readme (https://github.com/tlevine/hardhat) is wrong.\r\nI guess it might be https://github.com/tlevine/scraperwiki-python or https://github.com/scraperwiki/hardhat , but I didnt quickly spot substantially similar code in those projects.\r\n\r\nfwiw, I am planning to do something slightly similar with https://github.com/jayvdb/anyhttp issue #1"},"comment":{"url":"https://api.github.com/repos/tlevine/get-cached/issues/comments/97351691","html_url":"https://github.com/tlevine/get-cached/issues/1#issuecomment-97351691","issue_url":"https://api.github.com/repos/tlevine/get-cached/issues/1","id":97351691,"user":{"login":"tlevine","id":10280,"avatar_url":"https://avatars.githubusercontent.com/u/10280?v=3","gravatar_id":"","url":"https://api.github.com/users/tlevine","html_url":"https://github.com/tlevine","followers_url":"https://api.github.com/users/tlevine/followers","following_url":"https://api.github.com/users/tlevine/following{/other_user}","gists_url":"https://api.github.com/users/tlevine/gists{/gist_id}","starred_url":"https://api.github.com/users/tlevine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlevine/subscriptions","organizations_url":"https://api.github.com/users/tlevine/orgs","repos_url":"https://api.github.com/users/tlevine/repos","events_url":"https://api.github.com/users/tlevine/events{/privacy}","received_events_url":"https://api.github.com/users/tlevine/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T08:30:46Z","updated_at":"2015-04-29T08:30:46Z","body":"Oh and reading and writing the same cache concurrently in vlermv\nis probably fine for this case.\n\n* Vlermv won't corrupt your files.\n* There is a race condition because there are no transactions;\n  if two threads/processes read and write the same key at about\n  the same time, the later one will win.\n* If you set mutable = False, you can't write to existing keys;\n  this would be one way of avoiding the race condition above.\n\nAlso, you are supporting only GET, yes? That probably makes things\neasier. It would be so cool if you made nice HTTP caching. I'll send\nyou a patch shortly that adds caching of the get_text or the get_binary,\nwhich might be fine for anyhttp given that that's all you can do.\nBut I'd suggest figuring out how to cache more of the response, as this\ncan help a lot with handling errors and debugging.\n\nOn 28 Apr 21:51, John Vandenberg wrote:\n> Thanks for the feedback Thomas.  Storing the raw HTTP response is definitely easier, and allows the cache to be shared across http clients.  vlermv looks interesting.  I'm wondering, do vlermv persistence objects work happily in both py2 and py3 environments?  i.e. can a py2 instance write to the cache, and a py3 instance then read from the same cache? (ignoring concurrency issues)\n> \n> I've not found how to make pickle work sanely in both py2 and py3, and it seems others have also failed.  It would be a nice to have, as I have a userbase that is very slowly migrating from py2, and sharing the cache would let they try py3 without them 'feeling' like it is slower due to the py3 cache being empty.\n> \n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/tlevine/get-cached/issues/1#issuecomment-97303654\n"}}