当前位置:网站首页>RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
2022-07-06 18:41:00 【Monkey who loves life】
One 、 Error message
I reported this error when deleting the cache :WRONGTYPE Operation against a key holding the wrong kind of value
Two 、 Wrong meaning
Wrong type operation for the key holding the wrong type value
3、 ... and 、 The cause of the error
When I save the cache, I use zset structure :
redisTemplate.opsForSet().add(key,value);
But when I delete this cache, I use :
redisTemplate.opsForZSet().remove(key,value);
Therefore, data structure inconsistency leads to , Error when deleting .
Four 、 terms of settlement
When deleting the cache structure, change to Set:
redisTemplate.opsForSet().remove(key,value);
Keep the same structure when saving and deleting .
This is the problem I encountered in my actual work , I hope it helps you ~
边栏推荐
- Wchars, coding, standards and portability - wchars, encodings, standards and portability
- 图片缩放中心
- Using block to realize the traditional values between two pages
- Five data structures of redis
- Cobra quick start - designed for command line programs
- 44所高校入选!分布式智能计算项目名单公示
- Markdown syntax for document editing (typera)
- RedisSystemException:WRONGTYPE Operation against a key holding the wrong kind of value
- STM32+HC05串口蓝牙设计简易的蓝牙音箱
- 人体骨骼点检测:自顶向下(部分理论)
猜你喜欢

用于远程医疗的无创、无袖带血压测量【翻译】

Introduction and case analysis of Prophet model
![[Sun Yat sen University] information sharing of postgraduate entrance examination and re examination](/img/a8/41e62a7a8d0a2e901e06c751c30291.jpg)
[Sun Yat sen University] information sharing of postgraduate entrance examination and re examination

十、进程管理

This article discusses the memory layout of objects in the JVM, as well as the principle and application of memory alignment and compression pointer

Windows connects redis installed on Linux

AvL树的实现

The third season of Baidu online AI competition is coming in midsummer, looking for you who love AI!
![[the 300th weekly match of leetcode]](/img/a7/16b491656863e2c423ff657ac6e9c5.png)
[the 300th weekly match of leetcode]

Numerical analysis: least squares and ridge regression (pytoch Implementation)
随机推荐
Penetration test information collection - App information
Coco2017 dataset usage (brief introduction)
Automatic reservation of air tickets in C language
Self supervised heterogeneous graph neural network with CO comparative learning
Maixll dock camera usage
JDBC驱动器、C3P0、Druid和JDBCTemplate相关依赖jar包
CSRF vulnerability analysis
Reprint: defect detection technology of industrial components based on deep learning
[Sun Yat sen University] information sharing of postgraduate entrance examination and re examination
【剑指 Offer】 60. n个骰子的点数
Penetration test information collection - WAF identification
Stm32+hc05 serial port Bluetooth design simple Bluetooth speaker
win10系统下插入U盘有声音提示却不显示盘符
[sword finger offer] 60 Points of N dice
epoll()无论涉及wait队列分析
用友OA漏洞学习——NCFindWeb 目录遍历漏洞
Introduction to the use of SAP Fiori application index tool and SAP Fiori tools
SQL injection - access injection, access offset injection
Huawei 0 foundation - image sorting
Test 1234