Skip to content
Advertisement

How to customize expireAfterWrite for concrete cache if I use cacheBuilder?

Based on this answer I try to use customized expireAfterWrite for “customCache”

So my config look like this:

JavaScript

Then in codeBase I use:

“customCache”

JavaScript

And based on my experiments it keeps values on cache pnly 60 seconds by I expect 60 minutes.

How to achieve desired result ?

Advertisement

Answer

I think a better way to do this is as follows.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement