akka/akka-http

Allow customized expiry time for cache entry

Open

#2,473 opened on Mar 17, 2019

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Scala (598 forks)batch import
1 - triagedhackathonhelp wantedt:caching

Repository metrics

Stars
 (1,311 stars)
PR merge metrics
 (Avg merge 1d 10h) (2 merged PRs in 30d)

Description

We are building an aggregated services and using Akka Http Server to expose service endpoints and Akka Http Client to call underlying services. These underlying services require JWT based authentication. To maintain the token, we were thinking of using Akka Http Caching, but it seems it does not support dynamic expiry for cache entry which is required for JWT token.

Caffeine has provided a support for that. It would be a good idea to integrate it with Akka Http Caching. Thoughts?

Contributor guide