{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/15","labels_url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/15/comments","events_url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/15/events","html_url":"https://github.com/Netflix/peeringdb-py/pull/15","id":103013818,"number":15,"title":"\"Dynamic\" import of Redis","user":{"login":"plajjan","id":841628,"avatar_url":"https://avatars.githubusercontent.com/u/841628?v=3","gravatar_id":"","url":"https://api.github.com/users/plajjan","html_url":"https://github.com/plajjan","followers_url":"https://api.github.com/users/plajjan/followers","following_url":"https://api.github.com/users/plajjan/following{/other_user}","gists_url":"https://api.github.com/users/plajjan/gists{/gist_id}","starred_url":"https://api.github.com/users/plajjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plajjan/subscriptions","organizations_url":"https://api.github.com/users/plajjan/orgs","repos_url":"https://api.github.com/users/plajjan/repos","events_url":"https://api.github.com/users/plajjan/events{/privacy}","received_events_url":"https://api.github.com/users/plajjan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-25T12:45:12Z","updated_at":"2015-08-25T17:28:26Z","closed_at":"2015-08-25T17:28:19Z","pull_request":{"url":"https://api.github.com/repos/Netflix/peeringdb-py/pulls/15","html_url":"https://github.com/Netflix/peeringdb-py/pull/15","diff_url":"https://github.com/Netflix/peeringdb-py/pull/15.diff","patch_url":"https://github.com/Netflix/peeringdb-py/pull/15.patch"},"body":"If Redis is available on the system it is imported while if it is not,\r\nwe use a MockRedis class. Redis is used for caching so without we cannot\r\nhave caching enabled.\r\n\r\nThis allows you to use peeringdb on a machine without Redis as long as\r\ncaching is disabled while on a machine with Redis, caching can be used\r\nas normally.\r\n\r\nNot sure if it's a good idea or not. We could just add a dependency on Redis\r\ninstead but it is kind of nice to have 0 dependencies."},"comment":{"url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/comments/134678176","html_url":"https://github.com/Netflix/peeringdb-py/pull/15#issuecomment-134678176","issue_url":"https://api.github.com/repos/Netflix/peeringdb-py/issues/15","id":134678176,"user":{"login":"natm","id":1790618,"avatar_url":"https://avatars.githubusercontent.com/u/1790618?v=3","gravatar_id":"","url":"https://api.github.com/users/natm","html_url":"https://github.com/natm","followers_url":"https://api.github.com/users/natm/followers","following_url":"https://api.github.com/users/natm/following{/other_user}","gists_url":"https://api.github.com/users/natm/gists{/gist_id}","starred_url":"https://api.github.com/users/natm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natm/subscriptions","organizations_url":"https://api.github.com/users/natm/orgs","repos_url":"https://api.github.com/users/natm/repos","events_url":"https://api.github.com/users/natm/events{/privacy}","received_events_url":"https://api.github.com/users/natm/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T17:28:26Z","updated_at":"2015-08-25T17:28:26Z","body":"thank you @plajjan "}}