当前位置:网站首页>Redis data server / database / cache (2022)
Redis data server / database / cache (2022)
2022-04-23 02:48:00 【REMLILI】
Cache data server
- One 、 Basics :
- Two 、 install :
- 3、 ... and 、 Instructions :
One 、 Basics :
Open source 、 Cross platform 、ANSI C Language writing 、 Distributed
comply with BSD agreement 、 Support network 、 Can be based on memory
Optional persistent key value pairs (Key-Value) Storage database
Non relational database
Remote dictionary server
Data structure server
key-value database
Cache
Message queuing agent
( One ) Basic knowledge of
1、 High performance
read :110000 Time /s
Write :81000 Time /s
2、 Atomicity : All operations
Atomicity : Or completely successful execution 、 Or fail and don't execute at all
Individual operations are atomic 、 Multiple operations also support transactions
3、 Hardware
Data volume < Hardware memory
Additional generation
( Two )key-value The storage system : cache
1、 Data persistence : Memory → disk
2、 Data structure storage :
1. Simple (key-value) Type data
2. character string (String) Type data
3. Hash (Hash) Hash type data
4. list (list) Type data
5. aggregate (sets) Type data
6. Ordered set (sorted sets) Type data
3、 The data backup :master-slave Mode data backup
( 3、 ... and ) Data structure server
1、 value (value): Basic data type
1. character string (String)
2. Hash (Hash): hash
3. list (list)
4. aggregate (sets)
5. Ordered set (sorted sets)
( Four ) File directory
redis-server : Redis The server
redis-cli : Redis Command line client ( test )
redis-benchemark : Redis Performance testing tools
redis-check-aof : AOF File repair tool
redis-check-dump : RDB File detection tool
redis.conf : linux In version redis The configuration file
redis.windows.conf : windows In the version redis The configuration file
Two 、 install :
( One ) step :Windows System
1、 download :
https://github.com/tporadowski/redis/releases
2、 function :
Catalog : Decompress the package , Run in the extracted Directory CMD
Instructions :.\redis-server.exe redis.windows.conf
3、 Connection service :
Catalog : Decompress the package , Run in the extracted Directory CMD( New window )
Instructions :.\redis-cli.exe -h 127.0.0.1 -p 6379
3、 ... and 、 Instructions :
( One ) Set key value pairs :
Instructions :set myKey abc
( Two ) Take out the key value pair :
Instructions :get myKey
( 3、 ... and )Redis To configure :
View all configurations :CONFIG GET *
Check the configuration :CONFIG GET loglevel
Edit the configuration :CONFIG SET loglevel "notice"
( Four )Redis client :
effect : Connect local redis service
Instructions :.\redis-cli
testing :ping
( 5、 ... and ) key (Key):
SET key value
GET key
Instructions :SET runoobkey redis
Instructions :DEL runoobkey
( 6、 ... and )H+ Hash (Hash): Hash store
Instructions :HMSET runoobkey name "redis tutorial" description "redis basic commands for caching" likes 20 visitors 23000
Instructions :HGETALL runoobkey
( 7、 ... and )L+ list (List): list
Instructions :LPUSH runoobkey redis
Instructions :LRANGE runoobkey 0 10
版权声明
本文为[REMLILI]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220741227410.html
边栏推荐
- ROP Emporium x86_ 64 7 ~ 8 questions
- Linux redis - redis database caching service
- Linux Redis ——Redis HA Sentinel 集群搭建详解 & Redis主从部署
- 打靶narak
- Interpretation of the future development of smart agriculture
- [unity3d] rolling barrage effect in live broadcasting room
- MySQL function syntax
- Devil cold rice 𞓜 078 devil answers the market in Shanghai and Nanjing; Communication and guidance; Winning the country and killing and screening; The purpose of making money; Change other people's op
- OCR识别PDF文件
- How to build an integrated industrial Internet plus hazardous safety production management platform?
猜你喜欢

Intelligent agricultural management model

Using go language to build web server

Devil cold rice 𞓜 078 devil answers the market in Shanghai and Nanjing; Communication and guidance; Winning the country and killing and screening; The purpose of making money; Change other people's op

Fashion MNIST dataset classification training

高效音乐格式转换工具Music Converter Pro

First knowledge of C language ~ branch statements

Specific field information of MySQL export table (detailed operation of Navicat client)

LeetCode 1450 - 1453

Shell script learning notes - regular expressions

Understanding process (multithreading primary)
随机推荐
Flink stream processing engine system learning (II)
Learn regular expression options, assertions
解决 注册谷歌邮箱 gmail 手机号无法用于验证
《信息系统项目管理师总结》第七章 项目沟通管理
How to solve the complexity of project document management?
基于ele封装下拉菜单等组件
JZ76 删除链表中重复的结点
Interpretation of the future development of smart agriculture
基于Scrum进行创新和管理
Modification du contenu de la recherche dans la boîte déroulante par PHP + MySQL
What is the difference between varchar and char?
重大危险源企业如何保障年底前完成双预防机制数字化建设任务
Target narak
Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
[hcip] detailed explanation of six LSAS commonly used by OSPF
Fashion MNIST 数据集分类训练
Servlet template engine usage example
Practical combat of industrial defect detection project (II) -- steel surface defect detection based on deep learning framework yolov5
MySQL function syntax
TypeScript(1)