the difference between Redis and memcached
The difference between Redis and memcached is simple, and most will get the following view:1 Redis not only supports simple k/v types of data, but also provides storage of data structures such as
installing the JDK and configuring environment variables
1. Download JDK
2. Decompression
Tar xzf jdk-7u79-linux-x64.tar.gz
3. Configure environment variables (reboot required after configuration is complete)
Open/etc/profile with a text
Description
After the Redis cluster is built, for subsequent operations and in-use processes need to add, delete, modify, and so on to the service node nodes in the incoming cluster, the following records the processing of node in the specific
After Redis has been installed without security or user control, the following requirements for the business, Redis new user authentication, here are the specific configuration:
1.1 Setting the authentication password
There is a way to set
It is stored in the cache for Redis, so the problem of cache data loss has always been a topic of considerable concern to programmers, so the need to persist the data in the cache is quite prominent, and the following are the related configurations
Prior to a period of time due to business needs to study the next Redis-related information, redex from single-machine to cluster configuration of the various configurations in the personal blog update, so that the need for friends.
1
After installing redis-2.8.13, I found that there was no self-launching script and wrote one yourself:
Script one:
#!/bin/sh
# chkconfig:345
# Description:startup and shutdown script for Redis
redis_dir=/usr/local/bin
#export $
1 Let go of the redis.config cluster-enabled Yes comment
2 Copying redis.conf files
Modify Port: 6380 6381 6382
3 Starting Redis Service separately
4 using the Redis Client command: Cluster meet IP Port command to create a cluster
5 Using the Redis
1. First introduce code base
org.springframework.data
spring-data-redis
1.6.1.release
redis.clients
jedis
2.7.3
2. Introduction of Spring Redis configuration information: Redisconfig.xml
and then introduce it in
The previous article explained the Redis installation on CentOS.
Now let's take a look at the installation of Redis standalone Multi-instance
First turn off Redis
Based on the configuration file location of the previous Redis
Exception Information:Exception is Java.lang.IllegalStateException:Cannot convert value of type [ Org.springframework.data.redis.connection.jedis.JedisConnectionFactory] to required type [ Javax.jms.ConnectionFactory] for property '
AOF (appendoffile) Introduction:
Record each write in the form of a log, record all the write commands performed by Redis (read operation not recorded), only append files but not overwrite files, Redis startup early read the file to reconstruct the
Redis Notes Grooming
One, Redis features
Second, Redis application scenario
Third, Redis operations and optimization
One, Redis features
1, Redis is an open-source, high-performance Key-value database. It runs in memory but can be persisted to
Redis is a single-threaded operation, and a slow execution, which allows for a large number of subsequent execution delays, greatly reduces throughput. Recording, querying, and monitoring redis slow execution is significant. Redis's slowlog are only
(i) string SDS
1) Sdsnew: Create a SDS containing the given C string
2) Sdsempty: Create an empty SDS that does not contain any content
3) Sdsfree: Release of the given SDS
4) Sdslen: Number of bytes of used space returned to SDS
5) Sdsavail: The
http://blog.jobbole.com/71095/
Source: Liang Xijian's blog (@ Liang Xijian)
For cache invalidation, different cache has different processing mechanism, it can be said that there is a small difference in Datong, the author through the Redis
Six features of Redis
L Strings
L HASHS
L Lists
L Sets
L Sorted Sets
L PUB/SUB Application Scenarios for Redis features Strings
The Strings data structure is a simple key-value type, and value is not only a string, it can also be a number. Common
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.