ERR wrong number of arguments for ‘sadd‘ command
ERR wrong number of arguments for ‘sadd’ command1. 问题描述 在spring整合Redis中,在Spring向Redis——有序集合SortedSet中插入数据时,出现:ERR wrong number of arguments for ‘sadd’ command2. 分析问题问题出现原因为: template.opsForZSet().add(“zset2”,set2);中第二个参数set2为null。参数set2为null。
复制链接