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相关推荐

  1. org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ‘srem‘

    1.报错信息 org.springframework.dao.InvalidDataAccessApiUsageException: ERR wrong number of arguments for ...

  2. ERR wrong number of arguments for 'sadd' command

    在用spring redis 存储set数据的时候,提示了这个ERR wrong number of arguments for 'sadd' command这个错误,通过调试发现: redisTem ...

  3. 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 ...

  4. (error) ERR wrong number of arguments for 'hmget' command

    首先不存在hmgetall这样的命令, localhost:6379> hgetall people_info "\xe5\xbc\xa0\xe5\xb0\x8f\xe4\xba\x8 ...

  5. C++工作笔记-hiredis中关于ERR wrong number of arguments for HMSET问题的解决

    这里有个坑 使用hiredis的API进行调用时如果是如下命令, hmset userid:1001 username 'xiao ming' 这种语法,使用redis-cli是没有问题的,但如果使用 ...

  6. 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 ...

  7. 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 ...

  8. Redis问题:ERR max number of clients reached

    redis高并发下,可能有些连接没有释放,导致连接数耗尽,会提示 ERR max number of clients reached 这个时候通过命令查看客户端使用连接数 [root@home-ser ...

  9. 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 ...

最新文章

  1. IdentityServer Topics(2)- 定义资源
  2. 企业级 SpringBoot 教程 (十二)springboot集成apidoc
  3. 计算机音乐乡间小路,《乡间的小路课件》初中音乐湘文艺2011课标版七年级下册课件.ppt...
  4. tomcat中关于websocket的性能优化配置
  5. jQuery滚动监听插件Waypoints
  6. 从渲染页面的角度来聊一聊浏览器的工作原理
  7. WORD单元格底部内容不见了怎么办?
  8. C++实现LRU算法(LeetCode 146 LRU缓存机制)
  9. SQLServer - 约束
  10. javascript animation lib greensock gsap介绍
  11. 用matlab开环增益,自控原理实验仿真部份
  12. TypeError: decoding str is not supported
  13. noip赛后【微笑】
  14. 【最新】2018年注册测绘师考试测绘案例分析真题及参考答案
  15. 努比亚计科学计算机,最后6天倒计时 努比亚为您揭晓未来科技
  16. 计算机应用技术python_大学计算机应用技术02PythonB2020学习通app网课答案
  17. 留学生论文essay写作字数不够怎么办?
  18. qt 3d迷宫游戏_玩迷宫也能解锁孩子空间思维,各年龄必备迷宫书单推荐(附游戏资源下载)...
  19. linux口令长度,linux的口令复杂度
  20. 【CFD理论】梯度项-01

热门文章

  1. 【阿里云·云原生架构】白皮书 —— 云原生架构原则
  2. eclipse egit_EGit迁移成为Eclipse的要求吗?
  3. txt文本的编码格式转换
  4. Soul源码解析(16)-Soul网关熔断插件使用及源码解读
  5. 直播新架构升级:全量支撑淘宝双11直播
  6. 一只喵的西行记-4 蛋蛋的忧桑
  7. 2014最火的10分钟6块腹肌动图gif教程,男人不能没有腹肌!
  8. ICPC北美中部赛区资格赛总结
  9. arnold渲染器预览窗口打开时保存有可能崩溃,解决方法如下
  10. 增强Spring @CacheEvict实现key模糊匹配清除