use redis as cache code example
Example 1: redis cache start
sudo /etc/init.d/redis_6379 start
Example 2: how to add ttl for cache name redis
@Cacheable(cacheManager = "expireOneHour", value = "onehour", key = "'_onehour_'+#key", sync = true)
sudo /etc/init.d/redis_6379 start
@Cacheable(cacheManager = "expireOneHour", value = "onehour", key = "'_onehour_'+#key", sync = true)