当前位置:网站首页>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
边栏推荐
- 解决 注册谷歌邮箱 gmail 手机号无法用于验证
- 《信息系统项目管理师总结》第六章 项目人力资源管理
- MySQL complex query uses temporary table / with as (similar to table variable)
- Rhcsa second day operation
- First day of rhcsa
- Step principle of logical regression in machine learning
- Classification and regression tree of machine learning
- Fashion MNIST dataset classification training
- If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
- When using art template inheritance, compileerror: invalid or unexpected token generated
猜你喜欢
[unity3d] rolling barrage effect in live broadcasting room
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
Store consumption SMS notification template
C语言 171. 最近回文数
Flink stream processing engine system learning (I)
JVM运行时数据区(一)
机器学习(周志华) 第十四章概率图模型
Yes, from today on, our fans can participate in Netease data analysis training camp for free!
Android high-level interview must ask: overall business and project architecture design and reconstruction
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
随机推荐
Linux redis - redis database caching service
JVM runtime data area (I)
下载正版Origin Pro 2022 教程 及 如何 激 活
MySQL complex query uses temporary table / with as (similar to table variable)
Les derniers noeuds K de la liste jz22
The penultimate K nodes in jz22 linked list
B blocks of the 46th ICPC Asian regional competition (Kunming)
How to build an integrated industrial Internet plus hazardous safety production management platform?
grain rain
hack the box optimum靶机
When using art template inheritance, compileerror: invalid or unexpected token generated
The input of El input input box is invalid, and error in data(): "referenceerror: El is not defined“
The usage of case when and select case when is very easy to use
5W of knowledge points
能做多大的单片机项目程序开发,就代表了你的敲代码的水平
MySQL insert free column
PIP install shutil reports an error
Understanding process (multithreading primary)
Android 高阶面试必问:全局业务和项目的架构设计与重构
【unity3D】直播间滚动式弹幕效果