I use Grails 3.1.8. How can I set timeToLiveSeconds property?
plugin configuration suggests me to set:
grails.cache.config = {
cache {
…
}
defaultCache {
maxElementsInMemory 10000
eternal false
timeToIdleSeconds 120
timeToLiveSeconds 120
overflowToDisk true
maxElementsOnDisk 10000000
diskPersistent false
diskExpiryThreadIntervalSeconds 120
memoryStoreEvictionPolicy 'LRU'
}
}
But that does not work for me. How can I set default and custom properties?