Skip to content

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

@Flo4604

Description

@Flo4604

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions