当前位置:网站首页>011_RedisTemplate操作Hash
011_RedisTemplate操作Hash
2022-04-23 02:02:00 【_yummy_】
011_RedisTemplate操作Hash
1、测试代码如图所示:
@Test
void testHash(){
stringRedisTemplate.opsForHash().put("user:103","name","李易峰");
stringRedisTemplate.opsForHash().put("user:103","age","21");
Map<Object, Object> entries = stringRedisTemplate.opsForHash().entries("user:103");
System.out.println(entries);
}
2、运行测试

3、关于hash类型操作的一些方法如图所示。


关于redis的入门基础知识的学习就要告一段落啦!后续会一起实战一下redis在实际项目中的应用。
版权声明
本文为[_yummy_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43890515/article/details/124332318
边栏推荐
- Use of push() and pop()
- 有哪些业务会用到物理服务器?
- 揭秘被Arm编译器所隐藏的浮点运算
- How does Axure set the content of the text box to the current date when the page is loaded
- easyswoole环境配置
- 用TensorFlow实现线性回归(包括过程中出现的问题及解决方法)
- Use of j-link RTT
- How to "gracefully" measure system performance
- [hands on learning] network depth v2.1 Sequence model
- 《维C中国》乡村助农暖人心第三站嘉宝果农场
猜你喜欢

How to call out services in idea and display the startup class in services

What problems will you encounter when dialing VPS?

Do447 manage user and team access
![NPM yarn startup error [resolved]](/img/8a/8351c33e30da8e08ac0dcb7c7c868e.png)
NPM yarn startup error [resolved]

教程】如何用GCC“零汇编”白嫖MDK

2022 low voltage electrician examination questions and answers

Realize linear regression with tensorflow (including problems and solutions in the process)

Server 2019 the available memory of the server is half of the actual memory

RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimensio

Shardingsphere sub database and sub table
随机推荐
如何设置电脑ip?
MySQL basic record
2022.4.22-----leetcode. three hundred and ninety-six
使用代理IP是需要注意什么?
什么是api接口?
在使用代理IP前需要了解哪些分类?
一些使用代理IP的小技巧。
What is a dial-up server and what is its use?
Some tips for using proxy IP.
代理IP可用率是不是等同于代理IP的效率?
如何选择一台好的拨号服务器?
The sixth season of 2022, the perfect children's model IPA national race leads the yuanuniverse track
2018 China Collegiate Programming Contest - Guilin Site J. stone game
Implementation of Base64 encoding / decoding in C language
Virtual serial port function of j-link V9 using skills
[Leetcode每日一题]396. 旋转函数
Is the sinking coffee industry a false prosperity or the eve of a broken situation?
Leetcode40 - total number of combinations II
EBS:PO_EMPLOYEE_HIERARCHIES_ALL
JDBC cannot connect to MySQL, and the error is access denied for user 'root' @ '* * *' (using password: Yes)