当前位置:网站首页>redis的使用
redis的使用
2022-07-26 00:06:00 【qq_32663053】
redis是非关系型数据库。
速度快原因,
单线程,
内存io
多路io复哈希结构快速存取
数据类型5种,set zset list hash string
redis最简单的使用。
比如说和mysql连用。
查询数据,
第一次查通过redis没有呀
通过mysql查到的数据我给redis添加一个key value
第二次查,有呀,直接走redis
删除数据
删除mysql并且删除redis
修改数据
修改mysql并且修改redis
增加数据
重新设置redis。
使用redis主要是快速取数据,满足多并发。
至于怎么设置list,可以留言,随后回复。
redis下载,按照步骤执行。
redis通过pom.xml文件配置。
这就是redis。
设置过期时间的作用我不会。
内存雪崩
5000个数据我4000个访问数据库,内存失效。
内存穿透
不断执行同一个访问,通过数据库进行访问,数据库崩溃。
边栏推荐
- 34 use of sparksql custom functions, architecture and calculation process of sparkstreaming, dstream conversion operation, and processing of sparkstreaming docking Kafka and offset
- 二叉树——530.二叉搜索树的最小绝对差
- Sort fake contacts
- How to make your JS code more beautiful
- letfaw
- 二叉树——617. 合并二叉树
- 多任务编程
- Binary tree -- 104. Maximum depth of binary tree
- 栈与队列——239. 滑动窗口最大值
- MySQL——数据库日志
猜你喜欢

Getaverse,走向Web3的远方桥梁

Observer model of behavioral model

Js理解之路:Object.call与Object.create()实现继承的原理

二叉树——101. 对称二叉树

How to use yolov5 as an intelligent transportation system for red light running monitoring (1)

12.神经网络模型

复盘:推荐系统—— 负采样策略

Binary tree - 530. Minimum absolute difference of binary search tree

Recent impressions about bull market and defi 2021-05-17

Unity -- Euler angle, quaternion
随机推荐
Backtracking - 77. combination
07_ue4进阶_发射火球扣mp值和攻击扣血机制
Stack and queue - 239. Sliding window maximum
Basic syntax of MySQL DDL, DML and DQL
LeetCode_55_跳跃游戏
二叉树——104. 二叉树的最大深度
[one library] mapbox GL! A map engine out of the box
Compile live555 with vs2019 in win10
YoloV4-tiny网络结构
FreeRTOS个人笔记-互斥量
What does it mean that the web server stops responding?
“动物币”凶猛,陷阱还是机遇?2021-05-12
Recent impressions about bull market and defi 2021-05-17
How to use yolov5 as an intelligent transportation system for red light running monitoring (1)
链表相关方法
FreeRTOS个人笔记-消息队列
Leetcode high frequency question 66. add one, give you an array to represent numbers, then add one to return the result
二叉树——112. 路径总和
@The underlying principle of Autowired annotation
栈与队列——347. 前 K 个高频元素