代码改变世界

Redis 数据库

2023-01-31 16:02  Evan.Pei  阅读(14)  评论(0编辑  收藏  举报

REmote DIctionary Server(Redis) 是一个由 Salvatore Sanfilippo 写的 key-value 存储系统,是跨平台的非关系型数据库。

Redis 通常被称为数据结构服务器,因为值(value)可以是字符串(String)、哈希(Hash)、列表(list)、集合(sets)和有序集合(sorted sets)等类型。

下载地址:https://github.com/tporadowski/redis/releases

安装后:redis.windows.conf  修改为制定ip

安装目录栏输入cmd
1,启动数据库:
redis-server.exe redis.windows.conf
2.开始输入
redis-cli.exe -h 127.0.0.1 -p 6379
3.设置
set myKey abc
4.读取
get myKey

--存储集合

https://blog.csdn.net/feizuiku0116/article/details/125107668

 

c#使用redis:

添加引用:管理NUget程序包: