当前位置:网站首页>Day08 redis的基础知识
Day08 redis的基础知识
2022-07-28 03:45:00 【lookout99】
系列文章目录
Day01 软件测试基础总结
Day02 测试用例知识点总结(上)
Day03 测试用例知识点总结(下)
Day04 禅道-从安装到卸载
Day05 MySql的基础使用
Day06 MySql知识点总结
Day07 MySql知识点再总结与多表查询
Day08 redis的基础知识
一、Redis 简介
Redis 是完全开源的,遵守 BSD 协议,是一个高性能的 key-value 数据库。
Redis 与其他 key - value 缓存产品有以下三个特点:
- Redis支持数据的持久化,可以将内存中的数据保存在磁盘中,重启的时候可以再次加载进行使用。
- Redis不仅仅支持简单的key-value类型的数据,同时还提供list,set,zset,hash等数据结构的存储。
- Redis支持数据的备份,即master-slave模式的数据备份。
二、Redis 的使用
1.安装
1.在当前文件夹打开cmd
2.输入 redis-server.exe redis.windows.conf 命令打开服务器

3.不要关闭上面的cmd页面,再打开一个cmd页面
4.输入命令 redis-cli.exe -h 127.0.0.1 -p 6379 命令就可以使用redis数据库了

可视化界面

2.基础命令
设置键值对:
set key value
取出键值对:
get key
删除key:
del key
同时设置一个或者多个键值对
mset key value [key value ...]
同时获取所有给定key值
mget key1 [key2 ...]
总结
redis虽然没有mysql应用广泛,但仍有自身的优势,如运行快等。不是必须掌握,但在有条件的情况下可以提升自己。
边栏推荐
- Collection | 0 basic open source data visualization platform flyfish large screen development guide
- 【OPENVX】对象基本使用之vx_pyramid
- ES6 from entry to mastery 07: Deconstruction assignment
- "Xiaodeng" network equipment monitoring in operation and maintenance
- 我的创作纪念日
- STM32 RT thread virtual file system mount operation
- 动态规划——63. 不同路径 II
- Selenium--WEB自动化测试工具
- After 95, Alibaba P7 published the payroll: it's really heartbreaking
- Lightpicture - exquisite drawing bed system
猜你喜欢

Qt:qmessagebox message box, custom signal and slot

The latest version of pagoda installs the zip extension, and PHP -m does not display the processing method

【LeetCode】34、在排序数组中查找元素的第一个和最后一个位置

leetcode刷题:动态规划08(分割等和子集)

Unity backpack system

Tungsten Fabric SDN — BGP as a Service

服务器内存故障预测居然可以这样做!

Interface automation test, complete introduction

In depth introduction to sap ui5 fileuploader control - why do you need a hidden iframe trial

Msgan is used for pattern search of multiple image synthesis to generate confrontation Network -- to solve the problem of pattern collapse
随机推荐
Daily practice ----- realize the lottery function of two-color ball. Rules: Six non repeating numbers are randomly selected from 36 red balls, and one from 15 basketball is randomly selected to form a
Leetcode brush question: dynamic planning 09 (weight of the last stone II)
某宝模拟登录,减少二次验证的方法
Ch340 RTS DTR pin programming drives OLED
接口自动化测试,完整入门篇
Asemi rectifier bridge gbpc5010, gbpc5010 parameters, gbpc5010 size
What is tor? What is the use of tor browser update?
每周推荐短视频:如何正确理解“精益”这个词?
Qt:qmessagebox message box, custom signal and slot
[openvx] VX for basic use of objects_ lut
[P4] solve the conflict between local file modification and library file
Implementation of online rental system based on SSM
12月份PMP考试首次采用新考纲,该怎么学?
【OPENVX】对象基本使用之vx_lut
[leetcode] 34. Find the first and last positions of elements in the sorted array
[错题]Concatenation
pip-script. py‘ is not present Verifying transaction: failed
695. Maximum area of the island
【OPENVX】对象基本使用之vx_image
做自动化测试,你后悔了吗?