当前位置:网站首页>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
边栏推荐
- Redis学习笔记—持久化机制之AOF
- 一元函数求极限三大方法---洛必达法则,泰勒公式
- Typora设置图片上传服务
- New engine, new capability, new experience, Tencent host security flagship release
- 636. Exclusive Time of Functions
- The results of CDN node and source station are inconsistent
- MQTT+Flink实现实时消息的订阅与发布
- GeoServer adding mongodb data source
- Kotlin Series 1: getting started with basics
- 位绑定
猜你喜欢

297. Serialize and Deserialize Binary Tree

Community article | mosn building subset optimization ideas sharing

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

'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册

16.系统启动流程

Quartz Crystal Drive Level Calculation

Click Add drop-down box

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

The sliding window of the force button "step by step" (209. sub array with the smallest length, 904. fruit basket)

学习SCI论文绘制技巧(F)
随机推荐
Summary ranges of leetcode topic resolution
一元函数求极限三大方法---洛必达法则,泰勒公式
4sum of leetcode topic analysis
MySQL fault case | error 1071 (42000): specified key was too long
Flink错误--Caused by: org.apache.calcite.sql.parser.SqlParseException: Encountered “time“
Testing -- automated testing selenium (about API)
@Response
Leetcode topic analysis 3sum
【云原生 | Kubernetes篇】Kubernetes原理与安装(二)
Happy number of leetcode topic analysis
一个采用直接映射方式的32KB缓存......存储器课后习题
The sliding window of the force button "step by step" (209. sub array with the smallest length, 904. fruit basket)
披萨订购设计----简单工厂模式
Kotlin Series 1: getting started with basics
Intelligent operation and maintenance exploration | anomaly detection method in cloud system
Leetcode topic analysis 3sum closest
Unity grid programming 08
Redis学习笔记—Redis与Lua
Mqtt+flink to subscribe and publish real-time messages
Redis学习笔记—持久化机制之RDB