当前位置:网站首页>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
边栏推荐
- Digital collection platform settled in digital collection platform to develop SaaS platform of digital collection
- 关于局域网浅谈
- C语言实现Base64编码/解码
- Longest common subsequence (record path version)
- 2022.4.22-----leetcode.396
- Cc2541 emulator CC debugger tutorial
- Shardingsphere introduction and sub table usage
- Sqlserver data transfer to MySQL
- Halo open source project learning (I): project launch
- Micro build low code zero foundation introductory course
猜你喜欢

Esp32 message queue using FreeRTOS

批处理多个文件合成一个HEX

2022 low voltage electrician examination questions and answers

Is it better to use a physical machine or a virtual machine to build a website?

我国科学家揭示突破水稻产量瓶颈新机制

Batch multiple files into one hex

紫光国微财报一枝独秀 2021年净利润三位数增长靠什么

What is BGP server and what are its advantages?

【dpdk】10. Dpdk DNS learning notes

什么是代理IP池,如何构建?
随机推荐
leetcode:27. 移除元素【count remove小操作】
关于局域网浅谈
Sqlserver data transfer to MySQL
什么是api接口?
Campus transfer second-hand market source code
使用代理IP是需要注意什么?
Unity editor hierarchy drop-down menu extension
Digital collection platform settled in digital collection platform to develop SaaS platform of digital collection
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimensio
PID精讲
如何对代理IP进行分类?
What should I pay attention to when using proxy IP?
中金财富跟中金公司是一家公司吗,安全吗
EBS:PO_EMPLOYEE_HIERARCHIES_ALL
World Book Day 𞓜 a good book that technicians should not miss (it cutting-edge technology)
简洁开源的一款导航网站源码
App optimization and advanced scoreboard Part 2 [Mui + flask + mongodb]
OJ daily practice - Finish
How to initialize "naming and surname" in C language
校园转转二手市场源码