{"action":"opened","issue":{"url":"https://api.github.com/repos/voidfiles/ssshelf/issues/1","repository_url":"https://api.github.com/repos/voidfiles/ssshelf","labels_url":"https://api.github.com/repos/voidfiles/ssshelf/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/voidfiles/ssshelf/issues/1/comments","events_url":"https://api.github.com/repos/voidfiles/ssshelf/issues/1/events","html_url":"https://github.com/voidfiles/ssshelf/issues/1","id":258656617,"number":1,"title":"Create Composable Storage Cache","user":{"login":"voidfiles","id":1764,"avatar_url":"https://avatars0.githubusercontent.com/u/1764?v=4","gravatar_id":"","url":"https://api.github.com/users/voidfiles","html_url":"https://github.com/voidfiles","followers_url":"https://api.github.com/users/voidfiles/followers","following_url":"https://api.github.com/users/voidfiles/following{/other_user}","gists_url":"https://api.github.com/users/voidfiles/gists{/gist_id}","starred_url":"https://api.github.com/users/voidfiles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/voidfiles/subscriptions","organizations_url":"https://api.github.com/users/voidfiles/orgs","repos_url":"https://api.github.com/users/voidfiles/repos","events_url":"https://api.github.com/users/voidfiles/events{/privacy}","received_events_url":"https://api.github.com/users/voidfiles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T00:03:15Z","updated_at":"2017-09-19T00:03:15Z","closed_at":null,"author_association":"OWNER","body":"Right now we have this concept of Storage. A Storage is a key value store, where the keys are ordered. The operations are relatively simple. We should be able to create a CachedStorage. That caches gets.\r\n\r\nThe API would be something like this\r\n\r\n```\r\nfrom ssshelf.storages.s3 import S3Storage\r\nfrom ssshelf.storages.cache import InMemoryCachedStorage\r\n\r\ns3_storage = S3Storage(bucket='example')\r\ncached_storage = S3Storage(s3_storage)\r\n\r\n```\r\nAny method that does get overwritten should just be proxied to the other storage."}}
{"actor":{"display_login":"voidfiles"}}