{"action":"created","issue":{"url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/35","repository_url":"https://api.github.com/repos/PsychoLlama/mytosis","labels_url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/35/comments","events_url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/35/events","html_url":"https://github.com/PsychoLlama/mytosis/issues/35","id":241428011,"number":35,"title":"In-memory cache controls","user":{"login":"PsychoLlama","id":10053423,"avatar_url":"https://avatars3.githubusercontent.com/u/10053423?v=4","gravatar_id":"","url":"https://api.github.com/users/PsychoLlama","html_url":"https://github.com/PsychoLlama","followers_url":"https://api.github.com/users/PsychoLlama/followers","following_url":"https://api.github.com/users/PsychoLlama/following{/other_user}","gists_url":"https://api.github.com/users/PsychoLlama/gists{/gist_id}","starred_url":"https://api.github.com/users/PsychoLlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsychoLlama/subscriptions","organizations_url":"https://api.github.com/users/PsychoLlama/orgs","repos_url":"https://api.github.com/users/PsychoLlama/repos","events_url":"https://api.github.com/users/PsychoLlama/events{/privacy}","received_events_url":"https://api.github.com/users/PsychoLlama/received_events","type":"User","site_admin":false},"labels":[{"id":489005130,"url":"https://api.github.com/repos/PsychoLlama/mytosis/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"PsychoLlama","id":10053423,"avatar_url":"https://avatars3.githubusercontent.com/u/10053423?v=4","gravatar_id":"","url":"https://api.github.com/users/PsychoLlama","html_url":"https://github.com/PsychoLlama","followers_url":"https://api.github.com/users/PsychoLlama/followers","following_url":"https://api.github.com/users/PsychoLlama/following{/other_user}","gists_url":"https://api.github.com/users/PsychoLlama/gists{/gist_id}","starred_url":"https://api.github.com/users/PsychoLlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsychoLlama/subscriptions","organizations_url":"https://api.github.com/users/PsychoLlama/orgs","repos_url":"https://api.github.com/users/PsychoLlama/repos","events_url":"https://api.github.com/users/PsychoLlama/events{/privacy}","received_events_url":"https://api.github.com/users/PsychoLlama/received_events","type":"User","site_admin":false},"assignees":[{"login":"PsychoLlama","id":10053423,"avatar_url":"https://avatars3.githubusercontent.com/u/10053423?v=4","gravatar_id":"","url":"https://api.github.com/users/PsychoLlama","html_url":"https://github.com/PsychoLlama","followers_url":"https://api.github.com/users/PsychoLlama/followers","following_url":"https://api.github.com/users/PsychoLlama/following{/other_user}","gists_url":"https://api.github.com/users/PsychoLlama/gists{/gist_id}","starred_url":"https://api.github.com/users/PsychoLlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsychoLlama/subscriptions","organizations_url":"https://api.github.com/users/PsychoLlama/orgs","repos_url":"https://api.github.com/users/PsychoLlama/repos","events_url":"https://api.github.com/users/PsychoLlama/events{/privacy}","received_events_url":"https://api.github.com/users/PsychoLlama/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-07-08T05:44:04Z","updated_at":"2017-12-09T02:36:45Z","closed_at":"2017-12-09T02:36:45Z","author_association":"OWNER","body":"Reading a value automatically caches the result, and there's no way to delete the value, short of messing with graph internals. If you're on a server, caching can be a good thing, but all in moderation. I'm proposing a new standard option called `options.cache`. It would be used to look up values from the cache and avoid storage/network trips and cache responses. Having greater control over that would be a huge win.\r\n\r\n```js\r\ndb.read('probably-never-again', {\r\n  cache: false,\r\n})\r\n```\r\n\r\nIf the `cache` argument is `false` or `null`, create a new empty graph. If it's a graph, use that. Otherwise default to the current database.\r\n\r\n```js\r\ndb.read('some-value', {\r\n  cache: database(),\r\n})\r\n```\r\n\r\nNaturally this would mess up real-time updates. If the value isn't cached, there's nothing to merge or emit into. I think that's a decent trade off."},"comment":{"url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/comments/350417706","html_url":"https://github.com/PsychoLlama/mytosis/issues/35#issuecomment-350417706","issue_url":"https://api.github.com/repos/PsychoLlama/mytosis/issues/35","id":350417706,"user":{"login":"PsychoLlama","id":10053423,"avatar_url":"https://avatars3.githubusercontent.com/u/10053423?v=4","gravatar_id":"","url":"https://api.github.com/users/PsychoLlama","html_url":"https://github.com/PsychoLlama","followers_url":"https://api.github.com/users/PsychoLlama/followers","following_url":"https://api.github.com/users/PsychoLlama/following{/other_user}","gists_url":"https://api.github.com/users/PsychoLlama/gists{/gist_id}","starred_url":"https://api.github.com/users/PsychoLlama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PsychoLlama/subscriptions","organizations_url":"https://api.github.com/users/PsychoLlama/orgs","repos_url":"https://api.github.com/users/PsychoLlama/repos","events_url":"https://api.github.com/users/PsychoLlama/events{/privacy}","received_events_url":"https://api.github.com/users/PsychoLlama/received_events","type":"User","site_admin":false},"created_at":"2017-12-09T02:36:45Z","updated_at":"2017-12-09T02:36:45Z","author_association":"OWNER","body":"This will be part of the rewrite."}}
{"actor":{"display_login":"PsychoLlama"}}