When redis is used as a caching technology through spring boot (<artifactId>spring-boot-starter-data-redis</artifactId>), i see few properties like TTL can be set in the application.properties file.
ex:
spring.cache.cache-names=cache1,cache2
spring.cache.redis.time-to-live=600000
and few more snippets from - Appendix A. Common application properties
spring.redis.database=0 # Database index used by the connection factory.
spring.redis.url= # Connection URL. Overrides host, port, and password. User is ignored. Example: redis://user:password@example.com:6379
spring.redis.host=localhost # Redis server host.
But I am not able to figure out how to set the cache eviction policy like - Least Frequently Used or Last Recently Used etc.
How and where do I have to provide this config details ??