redisTemplateopsForListrange 返回值转换为List对象
您可以使用以下代码将返回值转换为List对象:
List<Object> resultList = redisTemplate.opsForList().range("key", 0, -1);
请确保在使用redisTemplate.opsForList().range()方法之前已经完成了RedisTemplate的初始化和配置。
原文地址: https://www.cveoy.top/t/topic/hLDS 著作权归作者所有。请勿转载和采集!