当前位置:网站首页>Redis6
Redis6
2022-07-26 19:39:00 【Cheng Cheng, it's Xiaobai】
Redis 6
Catalog
2.3 Redis It's single threaded
2.4 Redis Why is single thread so fast ?

This article is my previous notes , If I saw it on the Nuggets, it's right , Or myself Cheng Cheng My personal homepage - dynamic - Nuggets This is the only one . If there is anything wrong, you are welcome to point out the problem , I am a little white .
The last article is :CSDN , This is Redis.
If it is springboot If so, please see springboot Create project _ Cheng Cheng is Xiaobai's blog -CSDN Blog , This is from scratch, not finished springboot, Study together !!!!
One .Redis Introduce
Two . Download and install
download epel Warehouse yum install epel-release -y
download redis database yum install redis -y
start-up redis service systemctl start redis2.1Redis Common command
systemctl status redis View service statussystemctl stop redis Out of Servicesystemctl restart redis Restart the serviceps -ef | grep redis see reids Service informationsystemctl enable redis redis Boot up
2.2redis Boot interface
1,yum install redis -- install redis database (-- yum How to install redsi Configuration file in /etc/redis.conf)2,systemctl start redis.service -- Turn on redis service3,ps -ef | grep redis -- see redis Open or not4, Repair configuration file - Change Password# requirepass foobared Remove the comment , It is amended as follows requirepass 123456 // Change Password
systemctl restart redis.service -- restart/usr/local/bin/redis-cli Enter operationRedis Basic knowledge ofRedis The default is 16 A database , The default is number 0 individual .have access to select Switch the database ,DBSIZE see DB size ,keys * View all key,Clear current database flushdb,Clear all database contents flushall
2.3 Redis It's single threaded
2.4 Redis Why is single thread so fast ?
myth 1: High performance servers must be multithreaded ?
myth 2: Multithreading (CPU The context switches ) It must be more efficient than a single thread !
2.5 Redis-key Basic commands
EXISTS name Judge the present key Whether there isKeys * View allClear Clear the screenDel/unlink name Delete specified dataMove name 1 Remove current keyEXPIRE name 10 Set up key The expiration time of , Unit secondTTL name View the current key The rest of the timeType name View the current key A type of
边栏推荐
- 机器学习笔记 - 构建推荐系统(6) 用于协同过滤的 6 种自动编码器
- Wechat applet plug-in -- wxml to canvas (generate pictures)
- Pychart loads CONDA to create a pytorch virtual environment and reports an error. It is normal on the CONDA command line
- 周末看点回顾|数字人民币产业联盟成立;中国移动宣布:和飞信将停止服务…
- 中信建投启牛学堂开户是安全的吗,启牛是干嘛的
- Software process that testers must know
- canvas概述
- TB 117-2013美国联邦强制性法规
- 3r平衡型理财产品会有风险吗?风险大吗?
- Will 3R balanced financial products have risks? Is it risky?
猜你喜欢

千万不要随便把 Request 传递到异步线程里面 , 有坑 你拿捏不住,得用 startAsync 方法才行

canvas概述

客户案例 | 聚焦流程体验,助银行企业APP迭代

Chapter 9 practical modeling technology

Software process that testers must know

Usage scenarios for automated testing

Sre person in charge of station B personally describes the multi activity disaster recovery construction after the 713 accident | takintalks share

C#获取本地时间/系统时间
![[C language implementation] - dynamic / file / static address book](/img/5a/655d9a4799b3e874a454a183dee3f1.png)
[C language implementation] - dynamic / file / static address book

Network protocol: tcp/ip protocol
随机推荐
什么是服务器集群?海外服务器集群的优势?
文件深度监控策略
What do indicators and labels do
SEO, client rendering ', server rendering, search engine understanding
IJCAI2022开会了! Brescia等《证据推理和学习》教程,阐述其最新进展,附96页Slides
How to protect e-commerce websites from network attacks?
【C语言实现】----动态/文件/静态通讯录
Save gas chitoken usage
Will 3R balanced financial products have risks? Is it risky?
2022搭建企业级数据治理体系
EN 1504-7混凝土结构保护和修理用产品钢筋防腐—CE认证
洋葱集团携手OceanBase实现分布式升级,全球数据首次实现跨云融合
C # create and read dat file cases
如何保护电子商务网站免受网络攻击?
Machine learning notes - building a recommendation system (6) six automatic encoders for collaborative filtering
Redis介绍
TB 117-2013美国联邦强制性法规
通过源码深度分析线程池中Worker线程的执行流程
Selenium + case of Web Automation Framework
[MySQL must know and know] log details