Redis学习记要
What's Redis
官网: https://redis.io/
其他参考网站: redis中文网: http://www.redis.cn/
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官网
Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bitmaps, hyperloglogs 和 地理空间(geospatial) 索引半径查询。 Redis 内置了 复制(replication),LUA脚本(Lua scripting), LRU驱动事件(LRU eviction),事务(transactions) 和不同级别的 磁盘持久化(persistence), 并通过 Redis哨兵(Sentinel)和自动 分区(Cluster)提供高可用性(high availability)。
—— redis中文网
NoSQL键值存储数据表代表
—— MongoDB、Hbase、Redis等NoSQL优劣势、应用场景
How to use Redis
- 安装Redis
1.Linux: 暂略
2.Windows: Redis官方不支持Windows,以下是第三方开发的Windows版本:
2a)https://github.com/MicrosoftArchive/redis/releases
安装参考: Redis安装(Windows环境下Redis安装): https://blog.csdn.net/antma/article/details/79225084
2b)https://github.com/ServiceStack/redis-windows
安装参考: windows下redis安装: https://blog.csdn.net/u012343297/article/details/78839063
- Redis客户端之Java-jedis:
项目主页: https://github.com/xetorthio/jedis
maven依赖:
<!-- https://mvnrepository.com/artifact/redis.clients/jedis --> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>3.0.1</version> </dependency>
2019-01-08 MicrosoftArchive/redis + jedis2.9.0试用成功
上一篇: MQ学习记要