-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cache the decisions to improve the enforcement performance. #2
Comments
I actually really need this for my project. Can I send a PR? |
sure, please send a PR :) |
Btw, I think you can implement it as a wrapper of the enforcer, like this one: https://github.com/casbin/casbin/blob/master/enforcer_synced.go |
Sounds good. I was thinking of also implementing the same adapter pattern used for persistence, so that the cache can be either in-memory (default) or redis. It'll also give the user an opportunity to provide their own cache implementation in case they don't want to use the default in-memory cache. |
Hi @iantanwx , |
No description provided.
The text was updated successfully, but these errors were encountered: