messages

Configures the caching for MessageData. Your application will generally handle a lot of messages during its lifetime, as such it's advised to limit the amount of messages cached in some way.

cache {
messages(none()) //disable caching entirely
messages(lruCache(100)) //only keep the latest 100 messages
}