Copyright NOTICE: This article is the original article, without the owner's permission to reprint.
Directory (?) [+]String [HTML]View plain copy 1, String common commands: In addition to operations such as GET, set, INCR, Decr mget, Redis also
First, use Aliyun database redis version, extranet link Redis Server timeout problem
1. The Redis version of the cloud database does not support external network access. You must install RINETD in Aliyun server ECS for forwarding implementations.
2.
Through a brief introduction of the previous article "Redis simple Use", this article mainly elaborates the five types of operation of Jedis to Redis: string, list, hash, set, ordered set. Jedisutil
The test cases here are run using JUNIT4,
# Redis configuration file
# When you need to configure the memory size in the configuration, you can use similar formats such as 1k, 5GB, 4M, which are converted as follows (case-insensitive)
#
# 1k =>
1000 bytes
# 1kb => 1024 bytes
# 1m => 100000
A Test Background and objectives
Understand the response time and throughput of Redis and memcached under high concurrency conditions, as well as the pressure on the server (including CPU, IO, network), and review the current memcached storage
sentinel¶
This document is translated from: Http://redis.io/topics/sentinel.
The Redis Sentinel system is used to manage multiple Redis servers (instance) that perform the following three tasks: monitoring (monitoring): Sentinel will constantly
Preface
We've learned the data types of Redis in the first place, and then we'll simply learn about Redis's transactions, sorting, pipelines, optimizing storage, and management. Transactions
The concept of business is not to be mentioned here,
The Spring-data-redis Project (SDR) provides a higher level of abstraction for Redis's Key-value data store operations, similar to the spring framework for JDBC support.
Project home: http://projects.spring.io/spring-data-redis/
Project Document:
Way One:
Download address: http://redis.io/download, download the latest version of the document.
The latest version of the document used in this tutorial is 2.8.17, download and install:
$ wget http://download.redis.io/releases/redis-2.8.17.tar.gz
Architecture design of second-kill system
Seconds kill system, is a typical short-term large number of sudden access class problems. There are three ways to optimize performance for this type of problem:
write memory instead of writing to hard disk,
acid for traditional databases
atomicity Atomic Nature
All operations inside the transaction are either done or not, and the transaction succeeds because all operations in the transaction are successful, and as long as one operation fails, the
1 What is Redis transaction
Redis provides transactional functionality through multi, EXEC, discard, and watch commands. Redis transactions provide a one-time, sequential mechanism for executing commands, and do not interrupt the transaction to
about Redis
Redis serves as a cache server for hotspot data, as well as a variety of scenarios such as support queues and publish/subscribe, which are commonly used in many projects. The following descriptions can be found on the Redis official
GitHub Source:
Github.com/z521598/redis-lockImplementation principle:
1.setnx
Redis's setnx Directive (document reference), setnx means set if not eXists, command format: setnx $key $value
If this key does not exist, it is set to value, the return
I. The development requirements of the Web2.0 era after the 1.1 of NoSQLWith the rise of the internet Web2.0 website, the traditional relational database in coping with Web2.0 website, especially the super-large-scale and high-concurrency SNS type
The project uses Redis as the cache data, but faces problems such as Project A, project B using Redis, and Redis as a set of clusters, which poses some problems.Questions:For example, the developer of Project A, to cache some hot data, think of
Redis Purge DataOne of the places where Redis is better than memcache is that if memcache, I'm afraid I have to turn off the reboot. 1 Use CLIFLUSHDB to clear a database, Flushall erase the entire redis data. 2 using shell redis-cli keys "*" |
As an application of nosql databases, redis is highly efficient in terms of response speed and hit rate. The project needs to use a centralized horizontally Scalable Cache framework, do a little research, even redis, memcached there are efficiency
Single Sign-On (SSO) is a basic requirement for complex application systems. Yale CAS is a common open source solution. CAS Certification Center, based on its special functions, will naturally become the core of the entire application system. All
Spool's developer blog describes how Spool uses bitmaps related operations of Redis to collect statistics on active website users.
Original article: http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps/
Redis supports
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service