Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myrachanto/cacher
package to cache authorization module rights
https://github.com/myrachanto/cacher
authentication caher golang
Last synced: 3 days ago
JSON representation
package to cache authorization module rights
- Host: GitHub
- URL: https://github.com/myrachanto/cacher
- Owner: myrachanto
- Created: 2023-06-08T09:04:06.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-06-25T05:01:37.000Z (6 months ago)
- Last Synced: 2024-06-26T04:28:00.631Z (6 months ago)
- Topics: authentication, caher, golang
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cacher
## package to cache authorization module rightswhile building a big system you need a means to cache authorization modules otherwise the options
are1. Embeb every request with ginormous amount of unnecesary info in a token . for example like category module user has read and write rights and
every other module the system implementsor
2. With every request you receive from a the from end you query the database for the access rights of the module the user is looking to get or update or create
something. which will amount to a lot of unnecesary traffic to the databaseand thats why i created this package.
Its simple it implements a cache that store the access rights.
it has three methods
1. Put
2. Get
3. InvalidateIt utilizes the second option of quering the database but regulates the amount of database query being sent. the database query is only triggered when
the user in question is not cached