当前位置:网站首页>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个访问数据库,内存失效。
内存穿透
不断执行同一个访问,通过数据库进行访问,数据库崩溃。
边栏推荐
- Binary tree -- 222. Number of nodes of a complete binary tree
- 服务器如何搭建虚拟主机?
- Binary tree - 112. Path sum
- How does the server build a virtual host?
- Binary tree -- 257. All paths of binary tree
- 06_ UE4 advanced_ Set up a large map using the terrain tool
- 用了MQ消息中间件后,我开始后悔了...
- Find the intermediate node of the linked list
- MySQL——多版本并发控制(MVCC)
- Js理解之路:Js常见的6中继承方式
猜你喜欢

Binary tree 101. Symmetric binary tree

Detailed explanation of kubernetes network plug-ins - calico chapter - Overview

Js理解之路:写一个比较完美的组合继承(ES5)

SQLZOO——Nobel Quiz
34-SparkSQL自定义函数的使用、SparkStreaming的架构及计算流程、DStream转换操作、SparkStreaming对接kafka和offset的处理

Unity—欧拉角,四元数

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

Elementary C language - branch statements (if, switch)

Binary tree -- 111. Minimum depth of binary tree

Thymeleaf view integration
随机推荐
LeetCode_ 55_ Jumping game
多任务编程
Binary tree - 617. Merge binary tree
获得JD商品详情原数据 API
Binary tree 101. Symmetric binary tree
Compile live555 with vs2019 in win10
Redirection and request forwarding
STM32 timer
Android solves the risk of database injection vulnerability
Binary tree related knowledge
二叉树——257. 二叉树的所有路径
FreeRTOS个人笔记-消息队列
[brother hero July training] day 24: linear tree
二叉树——226. 翻转二叉树
Binary tree - 110. Balanced binary tree
NVIDIA cudnn learning
The bull market is not over yet, and there is still 2021-05-18 in the second half
初阶C语言 - 分支语句(if、switch)
牛市还将继续,拿好手里的币 2021-05-08
京东获取推荐商品列表 API