{"action":"created","issue":{"url":"https://api.github.com/repos/MichaCo/CacheManager/issues/31","labels_url":"https://api.github.com/repos/MichaCo/CacheManager/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/MichaCo/CacheManager/issues/31/comments","events_url":"https://api.github.com/repos/MichaCo/CacheManager/issues/31/events","html_url":"https://github.com/MichaCo/CacheManager/issues/31","id":122560583,"number":31,"title":"Implementing Dependencies","user":{"login":"TMiNus","id":7503522,"avatar_url":"https://avatars.githubusercontent.com/u/7503522?v=3","gravatar_id":"","url":"https://api.github.com/users/TMiNus","html_url":"https://github.com/TMiNus","followers_url":"https://api.github.com/users/TMiNus/followers","following_url":"https://api.github.com/users/TMiNus/following{/other_user}","gists_url":"https://api.github.com/users/TMiNus/gists{/gist_id}","starred_url":"https://api.github.com/users/TMiNus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TMiNus/subscriptions","organizations_url":"https://api.github.com/users/TMiNus/orgs","repos_url":"https://api.github.com/users/TMiNus/repos","events_url":"https://api.github.com/users/TMiNus/events{/privacy}","received_events_url":"https://api.github.com/users/TMiNus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-16T17:28:31Z","updated_at":"2015-12-17T21:32:48Z","closed_at":null,"body":"I am currently trying to implement keys dependencies using CacheManager. Until now I have just come up with 2 options, either doing so through cache layers using BlackPlate and the already implemented consistency  or using regions somehow. \r\n\r\nI think that in the current implementation of the library it is not possible to add new handles dynamically to a manager, you will have to create a new manager all together if you wanted new handles, which I think will not be adequate for the task at hand and even if we could add new handles dynamically I don't know if it will be efficient to have  possibly 100+ handles.\r\n\r\nIn the regions way I suppose it will be possible to define a region called \"dependencies\" and then subscribe to the events defined in BaseCacheManager and check the \"dependencies\" region every time an operation is executed in a key but again I don't know if this will be efficient enough.\r\n\r\nIs there another way of tackling this problem or am I missing something?"},"comment":{"url":"https://api.github.com/repos/MichaCo/CacheManager/issues/comments/165588135","html_url":"https://github.com/MichaCo/CacheManager/issues/31#issuecomment-165588135","issue_url":"https://api.github.com/repos/MichaCo/CacheManager/issues/31","id":165588135,"user":{"login":"MichaCo","id":5837539,"avatar_url":"https://avatars.githubusercontent.com/u/5837539?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaCo","html_url":"https://github.com/MichaCo","followers_url":"https://api.github.com/users/MichaCo/followers","following_url":"https://api.github.com/users/MichaCo/following{/other_user}","gists_url":"https://api.github.com/users/MichaCo/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaCo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaCo/subscriptions","organizations_url":"https://api.github.com/users/MichaCo/orgs","repos_url":"https://api.github.com/users/MichaCo/repos","events_url":"https://api.github.com/users/MichaCo/events{/privacy}","received_events_url":"https://api.github.com/users/MichaCo/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T21:32:48Z","updated_at":"2015-12-17T21:32:48Z","body":"Well it could be.\r\nItemA has Sliding of 10minutes, ItemB depends on ItemA and has Sliding of 20minutes.\r\nNow as long as ItemA gets refreshed at least every 10minutes, it will not expire ItemB\r\n\r\nItemB could also have an absolute or no expiration at all ;) Would totally work"}}