redis 5.0.3

官方:https://redis.io/

一 简介

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

redis是开源的内存数据结构仓库,可以用作数据库、缓存或消息队列,支持丰富的数据类型:strings, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs, geospatial indexes,支持多副本、lua脚本、lru、事务、持久化,同时支持高可用和分区(Sentinel);

二 安装

$ wget http://download.redis.io/releases/redis-5.0.3.tar.gz
$ tar xzf redis-5.0.3.tar.gz
$ cd redis-5.0.3
$ make

三 使用

启动server

$ src/redis-server

连接本地server

$ src/redis-cli
redis> set foo bar
OK
redis> get foo
"bar"

连接远程server

$ src/redis-cli
Could not connect to Redis at 127.0.0.1:6379: Connection refused
not connected> connect 192.168.0.1 6379
192.168.0.1:6379> ping
PONG
192.168.0.1:6379> set hello world
OK
192.168.0.1:6379> get hello
"world"

常用命令参考:https://redis.io/commands

最新文章

  1. Maven之构件
  2. poj2250 最长上升子序列 + 输出
  3. ssh命令:使用密钥文件进行登陆
  4. WPF 视图分组排序
  5. 将Sublime Text 2搭建成一个好用的IDE
  6. HDU1394 Minimum Inversion Number(线段树OR归并排序)
  7. Python之列表&元组&字典
  8. Linux 在文件中查找某字符串
  9. final、finally、finalize区别
  10. 关于surface gradient
  11. BZOJ2282 SDOI2011消防/NOIP2007树网的核(二分答案+树形dp)
  12. [development][lockless][dpdk] 无锁队列
  13. cf900D. Unusual Sequences(容斥 莫比乌斯反演)
  14. 多个类定义attr属性重复的问题:Attribute "xxx" has already been defined
  15. Ubuntu下配置jdk及maven等方法
  16. java获取当月的第一天和最后一天,获取本周的第一天和最后一天
  17. python webdriver api-操作富文本框
  18. CMD终端关于pip报错,scrapy报错的一种处理方法
  19. 关于郭天祥51开发板无法烧敲代码问题的解决(Prolific USB-to-Serial Comm Port)
  20. python3用pdfminer3k在线读取pdf文件

热门文章

  1. Python--day03(变量、数据类型、运算符)
  2. 安装Java和Tomcat
  3. SqlServer如何判断字段中是否含有汉字?
  4. CentOS 7 下面使用 sendMail 发送邮件
  5. 【zabbix教程系列】一、初识zabbix
  6. Linux基础操作文件等基础操作
  7. Python进阶5---StringIO和BytesIO、路径操作、OS模块、shutil模块
  8. springboot 打war
  9. python学习日记(OOP——反射)
  10. UOJ#348 州区划分