当前位置:网站首页>Redis learning notes - Database Management
Redis learning notes - Database Management
2022-06-23 09:10:00 【Love Guoba】
Switch receipt Library
select dbindex
MySQL Support the existence of multiple databases under one instance , But relational databases use characters to distinguish different database names ,Redis Use only numbers to distinguish between different databases ,redis The default is 16 A database , stay redis.conf The configuration file has a default configuration databases 16. In general, it is not recommended to use multiple databases to manage the cache , such as Redis Distributed implementation of Redis Cluster Only use 0 The database , If you want to use multiple databases, it is best to arrange multiple databases redis Instances are distinguished by ports , With all instances of 0 The database , Try not to switch databases , So as not to be difficult to maintain
stay 14 No. database settings key by Charlie The data of , Data in other databases are not interconnected
127.0.0.1:6379> get Charlie
(nil)
127.0.0.1:6379> select 14
OK
127.0.0.1:6379[14]> set Charlie "I'm tired"
OK
127.0.0.1:6379[14]> select 0
OK
127.0.0.1:6379> get Charlie
(nil)
Clear data
flushdb/flushall Clear the warehouse carefully
flushdb
flushall
边栏推荐
- June 22, 2022: golang multiple choice question, what does the following golang code output? A:3; B:1; C:4; D: Compilation failed.
- A method of realizing video call and interactive live broadcast in small programs
- 65. Valid Number
- Combination sum III of leetcode topic analysis
- ARM处理器与51单片机程序编写的区别
- Unity grid programming 06
- @Response
- Redis学习笔记—Redis与Lua
- 528. Random Pick with Weight
- [event registration] sofastack × CSDN jointly held the open source series meetup, which was launched on June 24
猜你喜欢

Custom tags - JSP tag enhancements

The fourth online workshop review

Testing -- automated testing selenium (about API)

js 用**遮罩身份证以及手机号的重要数据

Jog运动模式
【NanoPi2试用体验】裸机第一步

社区文章|MOSN 构建 Subset 优化思路分享

力扣之滑动窗口《循序渐进》(209.长度最小的子数组、904. 水果成篮)

Flink错误--Caused by: org.apache.calcite.sql.parser.SqlParseException: Encountered “time“

"Coach, I want to play basketball" -- AI Learning Series booklet for students who are making systems
随机推荐
3. caller service call - dapr
438. Find All Anagrams in a String
学习SCI论文绘制技巧(F)
[QNX Hypervisor 2.2用户手册]6.2 网络
设CPU有16根地址线,8根数据线,并用MREQ作为访存控制线号......存储器与CPU的连接
【学习资源】理解数学和热爱数学
Quartz Crystal Drive Level Calculation
ionic5錶單輸入框和單選按鈕
MySQL fault case | error 1071 (42000): specified key was too long
Unique paths for leetcode topic resolution
MySQL故障案例 | ERROR 1071 (42000): Specified key was too long
Leetcode topic analysis count primes
MySQL fault case | mysqldump: couldn't execute 'select column_ NAME
Learn SCI thesis drawing skills (E)
线性表(SequenceList)的顺序表示与实现----线性结构
Redis学习笔记—主从复制
ARM处理器与51单片机程序编写的区别
线性表(LinkList)的链式表示和实现----线性结构
The results of CDN node and source station are inconsistent
Best time to buy and sell stock II