unkey
unkey copied to clipboard
Add caching for key endpoints that lookup keys by id / whoami endpoint
Currently when using the updateKey/updateCredits/setRoles/and others or whoami we run to the db each time to find the key and its information
This should be wrapped with our cache
- [ ] Add new cache into
go/internal/services/caches/caches.go - [ ] Use the cache in all handlers where we call this function
- [ ] Use the cache and pass it into the given handler(s) when
- [ ] registering in the api start
- [ ] in all tests
hi @Flo4604 I would like to work on this issue.