当前位置:网站首页>011_ Redistemplate operation hash
011_ Redistemplate operation hash
2022-04-23 02:09:00 【_ yummy_】
011_RedisTemplate operation Hash
1、 The test code is shown in the figure :
@Test
void testHash(){
stringRedisTemplate.opsForHash().put("user:103","name"," Li Yifeng ");
stringRedisTemplate.opsForHash().put("user:103","age","21");
Map<Object, Object> entries = stringRedisTemplate.opsForHash().entries("user:103");
System.out.println(entries);
}
2、 Run the test
3、 About hash Some methods of type operation are shown in the figure .
About redis The study of the basic knowledge of introduction is coming to an end ! We will fight together in the follow-up meeting redis Application in practical projects .
版权声明
本文为[_ yummy_]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230202506490.html
边栏推荐
- 【汇编语言】从最底层的角度理解“堆栈”
- PTA: 浪漫倒影 [二叉树重建] [深度优先遍历]
- Daily question (April 22, 2022) - rotation function
- Leetcode46 Full Permutation
- go语言打怪通关之 ⌈互斥锁和状态协程⌋
- How does Axure set the content of the text box to the current date when the page is loaded
- 世界读书日 | 技术人不要错过的好书(IT前沿技术)
- What businesses use physical servers?
- World Book Day 𞓜 a good book that technicians should not miss (it cutting-edge technology)
- 动态代理ip的测试步骤有哪些?
猜你喜欢
随机推荐
What is a makefile file?
Analyze the three functions of static proxy IP.
动态代理ip的测试步骤有哪些?
【Chrome扩展程序】content_script的跨域问题
Dynamic batch processing and static batch processing of unity
[nk]牛客月赛48 D
什么是api接口?
PTA: praise the crazy devil
从开源爱好者到 Apache 董事,一共分几步?
[leetcode daily question] 396 Rotation function
006_redis_jedis快速入门
Go language ⌈ mutex and state coordination ⌋
arduino esp8266 网络升级 OTA
Thinkphp内核开发盲盒商城源码v2.0 对接易支付/阿里云短信/七牛云存储
013_基于Session实现短信验证码登录流程分析
Applet reads files
Micro build low code zero foundation introductory course
什么是bgp服务器,有哪些优势?
有哪些业务会用到物理服务器?
拨号服务器是什么,有什么用处?