unkey icon indicating copy to clipboard operation
unkey copied to clipboard

Add caching for key endpoints that lookup keys by id / whoami endpoint

Open Flo4604 opened this issue 2 months ago • 2 comments

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

Flo4604 avatar Oct 23 '25 20:10 Flo4604

ENG-2144

linear[bot] avatar Oct 23 '25 20:10 linear[bot]

hi @Flo4604 I would like to work on this issue.

Akhileshait avatar Oct 26 '25 13:10 Akhileshait