ERR wrong number of arguments for ‘srem‘ command
ERR wrong number of arguments for ‘srem’ command
问题描述
再远程调用redis服务得时候,出现得这个异常,字面意思就是参数不匹配
问题解决
原因是因为,底层定以得方法调用了多个参数,而我只传递了一个参数,才会这个样子
public long setRemove(String key, Object ...values) { // 这里我值传递了一个key,大意了try {Long count = redisTemplate.opsForSet().remove(key, values);return count;} catch (Exception e) {e.printStackTrace();return 0;}}
还是要谨慎,以上
ERR wrong number of arguments for ‘srem‘ command相关推荐
- org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ‘srem‘
1.报错信息 org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ...
- ERR wrong number of arguments for 'sadd' command
在用spring redis 存储set数据的时候,提示了这个ERR wrong number of arguments for 'sadd' command这个错误,通过调试发现: redisTem ...
- node-redis:ErrorReply: ERR wrong number of arguments for ‘auth‘ command
问题描述 环境 $ node -v v16.14.0# redis-cli 127.0.0.1:6379> info # Server redis_version:5.0.5 版本 packag ...
- (error) ERR wrong number of arguments for 'hmget' command
首先不存在hmgetall这样的命令, localhost:6379> hgetall people_info "\xe5\xbc\xa0\xe5\xb0\x8f\xe4\xba\x8 ...
- C++工作笔记-hiredis中关于ERR wrong number of arguments for HMSET问题的解决
这里有个坑 使用hiredis的API进行调用时如果是如下命令, hmset userid:1001 username 'xiao ming' 这种语法,使用redis-cli是没有问题的,但如果使用 ...
- Hbase的shell出现wrong number of arguments xxx以及undefined method any?for xxxx
我们大概碰到过下面这种情况 ERROR: wrong number of arguments (10 for 6) For usage try 'help "put"' Took ...
- Compiled functions can't take variable number of arguments or use keyword-only arguments with defaul
Compiled functions can't take variable number of arguments or use keyword-only arguments with defaul ...
- Redis问题:ERR max number of clients reached
redis高并发下,可能有些连接没有释放,导致连接数耗尽,会提示 ERR max number of clients reached 这个时候通过命令查看客户端使用连接数 [root@home-ser ...
- Error Code: 1318. Incorrect number of arguments for PROCEDURE student.new_procedure; expected 0, got
1.错误描述 13:58:20 call new_procedure('2000','zhangsan') Error Code: 1318. Incorrect number of argument ...
最新文章
- IdentityServer Topics(2)- 定义资源
- 企业级 SpringBoot 教程 (十二)springboot集成apidoc
- 计算机音乐乡间小路,《乡间的小路课件》初中音乐湘文艺2011课标版七年级下册课件.ppt...
- tomcat中关于websocket的性能优化配置
- jQuery滚动监听插件Waypoints
- 从渲染页面的角度来聊一聊浏览器的工作原理
- WORD单元格底部内容不见了怎么办?
- C++实现LRU算法(LeetCode 146 LRU缓存机制)
- SQLServer - 约束
- javascript animation lib greensock gsap介绍
- 用matlab开环增益,自控原理实验仿真部份
- TypeError: decoding str is not supported
- noip赛后【微笑】
- 【最新】2018年注册测绘师考试测绘案例分析真题及参考答案
- 努比亚计科学计算机,最后6天倒计时 努比亚为您揭晓未来科技
- 计算机应用技术python_大学计算机应用技术02PythonB2020学习通app网课答案
- 留学生论文essay写作字数不够怎么办?
- qt 3d迷宫游戏_玩迷宫也能解锁孩子空间思维,各年龄必备迷宫书单推荐(附游戏资源下载)...
- linux口令长度,linux的口令复杂度
- 【CFD理论】梯度项-01