{"action":"created","issue":{"url":"https://api.github.com/repos/Shawckz/xPerms/issues/2","repository_url":"https://api.github.com/repos/Shawckz/xPerms","labels_url":"https://api.github.com/repos/Shawckz/xPerms/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Shawckz/xPerms/issues/2/comments","events_url":"https://api.github.com/repos/Shawckz/xPerms/issues/2/events","html_url":"https://github.com/Shawckz/xPerms/issues/2","id":170794166,"number":2,"title":"rongo UUID support for database keys","user":{"login":"Shawckz","id":8146051,"avatar_url":"https://avatars.githubusercontent.com/u/8146051?v=3","gravatar_id":"","url":"https://api.github.com/users/Shawckz","html_url":"https://github.com/Shawckz","followers_url":"https://api.github.com/users/Shawckz/followers","following_url":"https://api.github.com/users/Shawckz/following{/other_user}","gists_url":"https://api.github.com/users/Shawckz/gists{/gist_id}","starred_url":"https://api.github.com/users/Shawckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shawckz/subscriptions","organizations_url":"https://api.github.com/users/Shawckz/orgs","repos_url":"https://api.github.com/users/Shawckz/repos","events_url":"https://api.github.com/users/Shawckz/events{/privacy}","received_events_url":"https://api.github.com/users/Shawckz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-12T03:49:39Z","updated_at":"2016-08-13T04:07:15Z","closed_at":"2016-08-13T04:07:15Z","body":"Rongo (Local -> Redis -> Mongo) cache system needs to be optimized and refactored.\r\n\r\nNeeds to support database cache accessors (Redis and Mongo) to use a UUID based key, rather than username.\r\n\r\nDue to how the system is currently laid out, it only supports via username.\r\n\r\nWould appreciate any PRs fixing this, as I'm having some troubles thinking of the best way to implement all of this.  Might be best to just simplify the Rongo system for Bukkit use, idea was that it would be cross-project compatible in the future but I can opt against that.\r\n\r\nSystem is supposed to work as follows:\r\nCache locally, to mongo, and redis when joining.  Creating documents for all caches if they don't exist on login.\r\n\r\nLocal cache has a time of cache, and after X time of the cache not being active (ex time since user logged out), they should be removed from the cache to preserve memory.\r\nAlso, every time the object for the locally cached player/object is fetched, the time until they are removed should be reset.\r\n\r\nWhen a player logs out, they should be removed from the local cache, and they data should be async saved into redis and mongo.\r\n\r\nThe thing with xPerms is, that, Redis is enabled **optionally**, meaning checks are needed to ensure safety there (none of which are currently implemented, however there's a method in DatabaseManager to check if Redis is being used)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Shawckz/xPerms/issues/comments/239600732","html_url":"https://github.com/Shawckz/xPerms/issues/2#issuecomment-239600732","issue_url":"https://api.github.com/repos/Shawckz/xPerms/issues/2","id":239600732,"user":{"login":"Shawckz","id":8146051,"avatar_url":"https://avatars.githubusercontent.com/u/8146051?v=3","gravatar_id":"","url":"https://api.github.com/users/Shawckz","html_url":"https://github.com/Shawckz","followers_url":"https://api.github.com/users/Shawckz/followers","following_url":"https://api.github.com/users/Shawckz/following{/other_user}","gists_url":"https://api.github.com/users/Shawckz/gists{/gist_id}","starred_url":"https://api.github.com/users/Shawckz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shawckz/subscriptions","organizations_url":"https://api.github.com/users/Shawckz/orgs","repos_url":"https://api.github.com/users/Shawckz/repos","events_url":"https://api.github.com/users/Shawckz/events{/privacy}","received_events_url":"https://api.github.com/users/Shawckz/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T04:07:15Z","updated_at":"2016-08-13T04:07:15Z","body":"Made new cache system instead."}}
{"actor":{"display_login":"Shawckz"}}