Windows Redis InstallationDownload Windows version redis or github download
Unzip the download of the compressed package is the following figure:
Three ways to start: Enter the Downloads folder to select the version you want to unzip into the folder:
respect for the success of Labor, reproduced please attach this article link and author: jianfeng_soft@163.com (road)
Recently (Friday) in chat with friends, chat to their game service to use a list of functions, naturally next we talked to Redis,
The rich data structure makes the design of Redis very interesting. Unlike relational databases, Dev and DBAs require deep communication, review each line of SQL statements, and unlike memcached, do not require DBA involvement. Redis DBAs need to be
Ready to
Modify the Pidfile to prepare for the following
Turn off RDB persistence to modify the location where the persisted file is saved
Start Redis
Redis-server/etc/redis.conf
Using Client connections Redis
Redis-cli
The connection is
PHP Operation Redis Detailed explanation of the turn
Phpredis is an extension of Redis PHP, and the efficiency is quite high with the sort function of linked list, to create memory-level module business relationship
Very useful; The following are
Exception content:
Redis.clients.jedis.exceptions.JedisConnectionException:java.net.SocketTimeoutException:Read timed out at Redis.clients.jedis.Protocol.process (protocol.java:79) ~[jedis-2.1.0.jar:na] at Redis.clients.jedis.Protocol.read
Project to do separation, the previous operation of the project to do a separate processing, the original Redis cache naturally to separate, to avoid maximizing the impact of changes on the function, for caching the database is just a separate
Recently in the research of distributed caching, I hope to be able to currently improve the use of the cache in the project. The results of this test may be unexpected.
comparison and analysis of test resultsSingle Read and write access memcached
It's really hard to install Redis Desktop Manager under Ubuntu, and you can put it on by the following method. No, it's not hard.
Method 1,
git clone--recursive https://github.com/uglide/RedisDesktopManager.git-b 0.9 rdm && CD./RDM
CD
1. Basic Concepts
Cardinality (cardinality) refers to the number of different elements in a collection. For example, the collection: {1,2,3,4,5,2,3,9,7}, this collection has 9 elements, but 2 and 3 each appear two times,
So the element that does not
When it comes to Redis, it's reminiscent of memcached and vice versa. The students who have known both have a general impression: Redis is more than just supporting simple key-value data types, but it also provides storage for data structures such
Follow the Redis Getting Started Guide to learn
Chapter III 5 Types of data----hash type
3.3 (hash type)
Redis uses several structures to store data in the form of a health-value pair, while the health value of a hash type (hash) is also a
DISCARD
Cancels the transaction, discarding all commands within the transaction block.If you are using the Watch command to monitor a (or some) key, then canceling all monitoring is equivalent to executing command unwatch.Available
reprinted from: Http://www.redicecn.com/html/Linux/20131125/468.htmlRedis "Misconf Redis is configured to save RDB snapshots, but was currently not able to persist on disk" solution
Today's second encounter with Redis "Misconf Redis is configured to
The company's server was swept out of a redis-related vulnerability, an unauthorized access vulnerability!That is, there should be no password set, so the vulnerability was scanned, set a password to be finishedModifying a configuration fileThe
Redis watch command
Purpose:Monitors one or more keys. If the key is changed by another command before the transaction is executed, the transaction is interrupted.Usage:
redis 127.0.0.1:6379> WATCH key1 key2OKRedis unwatch command
Purpose:This
Redis's list type has a good feature, that is, the length of the current list will be returned after each element is added. With this feature, we can monitor its length, for example, our key is the IP address registered by the user, and the list
Redis installation steps:
1. Install redis Server
Wget http://redis.googlecode.com/files/redis-2.4.6.tar.gz # download filesTar xzf redis-2.4.6.tar.gzCD redis-2.4.6MakeCP src/redis-server src/redis-cli/usr/bin/# It is convenient to run directly on
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