当前位置:网站首页>Go practice -- use redis in golang (redis and go redis / redis)
Go practice -- use redis in golang (redis and go redis / redis)
2022-07-03 05:12:00 【Jiangnan - crossing the river with a reed】
Life is more than enough , continue go go go !!!
I've introduced golang How to use sqlite3:
《Go actual combat –go Language operation sqlite database (The way to go)》
Today I share with you how to golang Use in redis database .
## What is the redis
Official website :
https://redis.io/
Redis is an in-memory database open-source software project implementing a networked, in-memory key-value store with optional durability.
Redis It's an open source 、 Use C language-written 、 Supporting network interaction 、 Memory based and persistent Key-Value database .
Redis advantage
Extremely high performance – Redis The speed at which you can read is 110000 Time /s, The speed of writing is 81000 Time /s .
Rich data types – Redis Supporting binary cases Strings, Lists, Hashes, Sets And Ordered Sets Data type operations .
atom – Redis All operations of are atomic , meanwhile Redis It also supports atomic execution of several operations after full merging .
Rich features – Redis And support publish/subscribe, notice , key Expiration and so on .
Redis And others key-value What's the difference between storage ?
Redis They have more complex data structures and provide atomic operations on them , This is a different evolutionary path from other databases .Redis All data types are based on basic data structure and transparent to programmers , There is no need for additional abstraction .
边栏推荐
- Shuttle + alluxio accelerated memory shuffle take-off
- On typescript and grammar
- 1114 family property (25 points)
- 联想R7000显卡的拆卸与安装
- Yolov5 input (I) -- mosaic data enhancement | CSDN creative punch in
- 1095 cars on campus (30 points)
- Notes | numpy-11 Array operation
- leetcode406. Rebuild the queue based on height
- ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
- XML配置文件
猜你喜欢

Without 50W bride price, my girlfriend was forcibly dragged away. What should I do

Common interview questions of microservice

leetcode452. Detonate the balloon with the minimum number of arrows

Principles of BTC cryptography

BIO、NIO、AIO区别

Keepalived热备与HAProxy
![[practical project] autonomous web server](/img/99/892e600b7203c63bad02adb683c8f2.png)
[practical project] autonomous web server

ZABBIX monitoring of lamp architecture (2): ZABBIX basic operation
![[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)](/img/af/8dfa783c87363a9d75c52e7680d508.jpg)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)

Yolov5 network structure + code + application details | CSDN creation punch in
随机推荐
appium1.22.x 版本後的 appium inspector 需單獨安裝
"Hands on deep learning" pytorch edition Chapter II exercise
Keepalived热备与HAProxy
RT thread flow notes I startup, schedule, thread
Without 50W bride price, my girlfriend was forcibly dragged away. What should I do
Ueditor, FCKeditor, kindeditor editor vulnerability
Learn to use the idea breakpoint debugging tool
Burp suite plug-in based on actual combat uses tips
Gbase8s composite index (I)
Notes | numpy-07 Slice and index
[backtrader source code analysis 5] rewrite several time number conversion functions in utils with Python
[basic grammar] Snake game written in C language
Shuttle + alluxio accelerated memory shuffle take-off
Bluebridge cup real topic 2020 palindrome date simulation construction provincial competition
[research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached
M1 Pro install redis
Automatic voltage rise and fall 5-40v multi string super capacitor charging chip and solution
leetcode435. Non overlapping interval
MySQL master-slave configuration
leetcode452. Detonate the balloon with the minimum number of arrows