当前位置:网站首页>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 .
边栏推荐
- Differences among bio, NiO and AIO
- 编译GCC遇到的“pthread.h” not found问题
- Botu uses peek and poke for IO mapping
- Burp suite plug-in based on actual combat uses tips
- Webapidom get page elements
- [research materials] 2021 annual report on mergers and acquisitions in the property management industry - Download attached
- XML Configuration File
- leetcode860. Lemonade change
- 1119 pre- and post order traversals (30 points)
- BTC-密码学原理
猜你喜欢

leetcode452. Detonate the balloon with the minimum number of arrows
![[research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached](/img/01/052928e7f20ca671cdc4c30ae55258.jpg)
[research materials] the fourth quarter report of the survey of Chinese small and micro entrepreneurs in 2021 - Download attached

Esp32-c3 learning and testing WiFi (II. Wi Fi distribution - smart_config mode and BlueIf mode)

Detailed explanation of the output end (head) of yolov5 | CSDN creation punch in

XML配置文件

Detailed explanation of yolov5 training own data set
![[basic grammar] C language uses for loop to print Pentagram](/img/9e/021c6c0e748e0981d4233f74c83e76.jpg)
[basic grammar] C language uses for loop to print Pentagram

Make your own dataset

Yolov5 network structure + code + application details | CSDN creation punch in

Shuttle + Alluxio 加速内存Shuffle起飞
随机推荐
appium1.22. Appium inspector after X version needs to be installed separately
Sprintf formatter abnormal exit problem
编译GCC遇到的“pthread.h” not found问题
leetcode452. Detonate the balloon with the minimum number of arrows
1110 complete binary tree (25 points)
1111 online map (30 points)
The principle is simple, but I don't know how to use it? Understand "contemporaneous group model" in one article
Rust基础入门之(基本类型)
[set theory] relationship properties (common relationship properties | relationship properties examples | relationship operation properties)
(subplots用法)matplotlib如何绘制多个子图(轴域)
BTC-密码学原理
Prepare for 2022 and welcome the "golden three silver four". The "summary of Android intermediate and advanced interview questions in 2022" is fresh, so that your big factory interview can go smoothly
Celebrate the new year together
酒店公共广播背景音乐-基于互联网+的酒店IP网络广播系统设计
leetcode435. Non overlapping interval
Handler understands the record
Ueditor, FCKeditor, kindeditor editor vulnerability
1107 social clusters (30 points)
Force GCC to compile 32-bit programs on 64 bit platform
Dynamic programming - related concepts, (tower problem)