How to create custom cacheKey? #133
-
So i want to create a custom cacheKey based on a attribute defined in a earlier filter. So how would I go about that?
expression = @myService.userId() |
Beta Was this translation helpful? Give feedback.
Answered by
MarcGiffing
Mar 18, 2024
Replies: 1 comment
-
The root object in the expression is the HttpServletRequest object. It's properties are accessed directly:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MarcGiffing
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The root object in the expression is the HttpServletRequest object. It's properties are accessed directly:
cache-key=getAttribute("id")