配置spring.redis开启redis单机缓存或集群缓存
CacheConfig配置缓存功能,redis连接成功时才启用redis缓存