当前位置:网站首页>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 ~
边栏推荐
- Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!
- JDBC驱动器、C3P0、Druid和JDBCTemplate相关依赖jar包
- Docker installation redis
- Some understandings of tree LSTM and DGL code implementation
- Interpreting cloud native technology
- [Sun Yat sen University] information sharing of postgraduate entrance examination and re examination
- CSRF vulnerability analysis
- Self supervised heterogeneous graph neural network with CO comparative learning
- Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
- UFIDA OA vulnerability learning - ncfindweb directory traversal vulnerability
猜你喜欢
Excellent open source fonts for programmers
线代笔记....
The third season of Baidu online AI competition is coming in midsummer, looking for you who love AI!
44 colleges and universities were selected! Publicity of distributed intelligent computing project list
用于远程医疗的无创、无袖带血压测量【翻译】
小程序在产业互联网中的作用
视频化全链路智能上云?一文详解什么是阿里云视频云「智能媒体生产」
Some understandings of tree LSTM and DGL code implementation
Execution process of MySQL query request - underlying principle
十、进程管理
随机推荐
Self supervised heterogeneous graph neural network with CO comparative learning
With the implementation of MapReduce job de emphasis, a variety of output folders
用于远程医疗的无创、无袖带血压测量【翻译】
Reproduce ThinkPHP 2 X Arbitrary Code Execution Vulnerability
AFNetworking框架_上传文件或图像server
Excellent open source fonts for programmers
How does crmeb mall system help marketing?
Top command details
Self-supervised Heterogeneous Graph Neural Network with Co-contrastive Learning 论文阅读
C#/VB.NET 给PDF文档添加文本/图像水印
JDBC驱动器、C3P0、Druid和JDBCTemplate相关依赖jar包
Penetration test information collection - WAF identification
C语言自动预订飞机票问题
atcoder它A Mountaineer
2022 Summer Project Training (II)
Breadth first traversal of graph
Xu Xiang's wife Ying Ying responded to the "stock review": she wrote it!
Distiller les connaissances du modèle interactif! L'Université de technologie de Chine & meituan propose Virt, qui a à la fois l'efficacité du modèle à deux tours et la performance du modèle interacti
涂鸦智能在香港双重主板上市:市值112亿港元 年营收3亿美元
[swoole series 2.1] run the swoole first