- 浏览: 564920 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (478)
- lucene (45)
- oracle (19)
- nutch (2)
- blog (2)
- 垂直搜索 (19)
- java综合 (89)
- spring (15)
- Hibernate (9)
- Struts (9)
- Hadoop (16)
- Mysql (12)
- nosql (10)
- Linux (3)
- MyEclipse (4)
- Ant (1)
- 设计模式 (19)
- JBPM (1)
- JSP (1)
- HtmlParser (5)
- SVN (2)
- 插件 (2)
- 收藏 (7)
- Others (1)
- Heritrix (18)
- Solr (4)
- 主题爬虫 (31)
- 内存数据库 (24)
- 分布式与海量数据 (32)
- httpclient (14)
- Tomcat (1)
- 面试宝典 (6)
- Python (14)
- 数据挖掘 (1)
- 算法 (6)
- 其他 (4)
- JVM (12)
- Redis (18)
最新评论
-
hanjiyun:
本人水平还有待提高,进步空间很大,看这些文章给我有很大的指导作 ...
JVM的内存管理 Ⅲ -
liuxinglanyue:
四年后的自己:这种方法 不靠谱。 使用javaagent的方式 ...
计算Java对象占用内存空间的大小(对于32位虚拟机而言) -
jaysoncn:
附件在哪里啊test.NoCertificationHttps ...
使用HttpClient过程中常见的一些问题 -
231fuchenxi:
你好,有redis,memlink,mysql的测试代码吗?可 ...
MemLink 性能测试 -
guyue1015:
[color=orange][/color][size=lar ...
JAVA同步机制
A deep dive into Redis' origins, design decisions, feature set, and a look at a few potential applications.
Redis (“REmote DIctionary Service”) is an open-source (BSD-licensed) database server.
- History
- Data Structure Server
- Key Advantages
- Key Disadvantages
- Diving In
History
The Redis project was started in early 2009 by an Italian developer named Salvatore Sanfilippo. Redis was initially written to improve the performance of LLOOGG, a real-time web analytics product out of Salvatore’s startup.
By June of 2009, Redis was stable enough, and had enough of a base feature set, to serve production traffic at LLOOGG. On June 19, 2009, an important milestone was hit:Salvatore deployed Redis to LLOOGG’s production environment and retired the MySQL installation.
Over the next months, Redis rapidly grew in popularity. Salvatore fostered a great community, added features at a very rapid pace, and dealt with any and all reports of database corruption, instability, etc. with the utmost severity.
In March of 2010 VMWare hired Salvatore to work full-time on Redis. (Redis itself remains BSD licensed.) Shortly thereafter, VMWare hired Pieter Noordhuis, a key Redis contributor, to give the project an additional momentum boost.
The rest, as they say, is history.
Data Structure Server
The most apt description of Redis is that it is a “data structure server”. This is a very natural label for the database, because Redis natively supports many of the foundational data types of computer science, and provides a rich set of familiar primitives for manipulating these types.
The supported data types are:
- Strings
- Lists
- Sets
- Sorted Sets
- Hashes
Key Advantages
Performance
Redis can perform >100k+ SETs per second, and >80k+ GETs per second.
The redis-benchmark
utility included with the project can be used to reproduce these findings. (More on benchmarks here and here.)
Atomicity
Every operation that Redis exposes via the available command primitives is atomic. (And, as we’ll see later, there are ways to combine multiple primitive commands into larger atomic units.) This makes application-level code easier to build and reason about.
Atomic guarantees are a direct consequence of Redis' single-threaded core; as a result, Redis' internals are simpler (no complex locking and synchronization code complicating the codebase, introducing bugs, and burning up CPU cycles).
Foundational Data Types
The data types that Redis offers are foundational. All computer scientists are very familiar with these data types and have already used them to solve countless problems.Lists, sets, etc. are more fundamental to computer scientists than relational database tables, columns, and rows.
The documentation for all Redis commands includes complexity measurements, in big O notation. This makes it very straightforward for computer scientists and software engineers to visualize, reason about, optimize, and understand the performance of Redis queries. Is it this straightforward to understand query performance in a relational database?
Polyglot Persistence
This is not specifically an advantage inherent to Redis, but is worth noting. Using Redis does not require a commitment to use it exclusively. Use Redis to solve problems that can be naturally modelled using its primitives, and embrace polyglot persistence for everything else.
Client Protocol
The client protocol is very straightforward. This makes it simple to build client libraries.
Getting Started
It is very easy to get started. Redis has no external dependencies, and getting up and running only involves the following steps:
- Clone the git repository or unpack the tarball
- Run
make
- Run
./src/redis-server
Then, from another terminal, start the interactive command line interface by running./src/redis-cli
.
Feel free to issue a few commands:
redis> PING
PONG
redis> INFO
redis_version:2.1.1
...
(Alternatively, to try Redis from your browser, visit try.redis-db.com.)
发表评论
-
Redis: under the hood(收藏)
2011-01-03 10:54 1144Redis: under the hood How ... -
Redis指令文档(非常有用的)
2011-01-01 15:32 1638连接控制QUIT 关闭连接AUTH (仅限启用时)简单的密 ... -
Webdis – 为 Redis 提供 HTTP 接口
2010-12-31 09:24 2093Redis 一直以来只提供纯文本操作协议(只有在 C ... -
Redis几个认识误区
2010-12-05 09:25 1071来自timyang的博客:Redi ... -
Redis tutorial, April 2010
2010-12-01 13:38 1357文章太长了,下面是其中的一小部分 转:http://simo ... -
redis常用命令
2010-12-01 13:22 21191、redis-benchmark redis基准信息,red ... -
使用Jredis做的小例子(入门级)
2010-11-30 16:02 5857redis入门级例子: package com. ... -
Redis命令总结
2010-11-30 13:03 807Redis提供了丰富的命令(command)对 ... -
Redis, from the Ground Up
2010-11-30 10:58 791Redis, from the Ground Up A ... -
Redis, from the Ground Up(4)
2010-11-30 10:57 924Redis Virtual Memory The go ... -
Redis, from the Ground Up(3)
2010-11-30 10:56 1046Expiry The EXPIRE command e ... -
Redis, from the Ground Up(2)
2010-11-30 10:55 680Key Disadvantages Redis req ... -
深入Redis,读redis-from-the-ground-up有感(转)
2010-11-30 10:50 1146上有一篇介绍Redis的文章,由浅入深地讲解了Redis: ... -
JRedisQuickStart
2010-11-29 22:20 1060JRedisQuickStart #Get g ... -
键值数据库—Redis(一) 基础入门
2010-11-29 21:46 1531Redis的知识准备 redis的基础介绍:http:/ ... -
Redis配置文件redis.conf参数解读
2010-11-29 20:43 1873转:http://blog.csdn.net/Java2K ... -
linux下redis的安装
2010-11-29 20:41 1009源地址:http://hanqunfeng.iteye.c ...
相关推荐
Chapter 1, Getting Started (The Baby Steps), shows you how to install Redis and how to use redis-cli, the default Redis command-line interface. It also shows you how to install Node.js and goes ...
标题“windows版Redis1”表明我们讨论的是一个适用于Windows操作系统的Redis安装包。这个压缩包包含了运行和管理Windows上的Redis所需的所有基本组件。 描述中提到,这个Windows版本的Redis可以直接解压后使用,这...
Redis Essentials is a fast-paced guide that teaches the fundamentals on data types, explains how to manage data through commands, and shares experiences from big players in the industry. We start off...
本项目是基于C#的NewLife.Redis高性能Redis协议封装设计源码,包含119个文件,其中包括95个C#源文件、6个csproj文件、3个YAML文件、2个PNG图片文件、2个pubxml文件、1个Editorconfig文件、1个gitignore文件、1个eddx...
mac m1 redis可视化客户端 安装完成无法打开,提示移到废纸篓,在终端执行: sudo xattr -rd com.apple.quarantine /Applications/Another\ Redis\ Desktop\ Manager.app 即可
NULL 博文链接:https://sichen84.iteye.com/blog/2419876
A SpringBoot project based on Redis from nowcoder.
解决github上下载慢Another-Redis-Desktop-Manager-M1-arm64-1.5.6文件安装验证通过Mac m1芯片可安装
You'll begin by getting Redis set up properly and then exploring the key-value model. Then, you'll dive into real use cases including simple caching, distributed ad targeting, and more. You'll learn ...
例如,`Redis_Example1.vi`和`Redis_Example2.vi`可能包含了不同的使用示例,展示了如何使用这些VI执行不同的Redis操作。 ### LabVIEWRedis `labviewredis`工具包同样是为LabVIEW设计的,用于与Redis集成。它可能...
redis配置文件redis.conf
redis-5.0.14-1.el7.remi.x86_64.rpm安装包(含有部署手册) redis-5.0.14-1.el7.remi.x86_64.rpm安装包(含有部署手册) redis-5.0.14-1.el7.remi.x86_64.rpm安装包(含有部署手册) redis-5.0.14-1.el7.remi.x86_64.rpm...
redis-5.0.3 redis-5.0.4 redis-5.0.5
1. **Redis 5.0.14 版本特点**: - Redis 5.0.14是Redis的一个稳定版本,包含了前一版本的错误修复和性能优化。 - 引入了Stream数据类型,提供了一种新的结构化数据存储方式,适用于时间序列数据或其他需要记录...
1. **什么是Redis**:Redis是一个开源的、基于键值对的数据存储系统,支持多种数据结构,如字符串、哈希、列表、集合、有序集合等。它以内存中的数据作为主要存储方式,同时提供了持久化功能,确保数据在断电后不会...
最近需要在C#中使用Redis,在Redis的官网找到了ServiceStack.Redis,最后在测试的时候发现这是个坑,4.0已上已经收费,后面只好找到3系列的最终版本,最后测试发现还是有BUG或者是我不会用。没有办法,最好找到了...
1. 首先,需要下载 Redis 软件包,使用以下命令下载最新版本的 Redis: ``` sudo wget http://download.redis.io/releases/redis-4.0.9.tar.gz ``` 2. 解压缩下载的软件包: ``` sudo tar -zxvf redis-4.0.9.tar.gz ...
1、redis_4.0.10-1_arm64.deb 银河麒麟v4+飞腾 安装包 2、自带服务启动 3、目录树 /opt/redis-4.0.10/ ├── bin │ ├── redis-benchmark │ ├── redis-check-aof │ ├── redis-check-rdb │ ├── ...
MacOS M1处理器 redis可视化工具