I am using Java 11 for my application. I want to store the log lines in Google guava cache with limit as 5000 and write it to file after the limit is reached with synchronized.
CacheLoader used key value pair. I don't have both. I have only one log lines.
Will I able to achieve it using Google guava cache?