On-line search for the following Redis entry operations, full TM on how to install the configuration and performance characteristics.The basic crud (Create, Read, Update, Delete) didn't say a word, it was crazy.Record your usual commands, then go
The cache technology says that Redis people will always associate with memcached, and people who know them should know the following.
Redis supports Key-value data types compared to memcached, and colleagues support storage of data
Redis Set Password accessYour redis is not accessible in the real environment, so you have to set a password if you want to access it.The process for setting the password is as follows:Vim/etc/redis.conf#requirepass foobared Remove the comment,
One: Features and comparisons1. Performance: Performance is excellent, specific to the details, because Redis only use single core, and memcached can use multi-core, so on average every core redis in the storage of small data than memcached
Redis uses the redis-3.2.4 version.installation process1. Download and unzipCd/usr/localwget HTTP://DOWNLOAD.REDIS.IO/RELEASES/REDIS-3.2.4.TAR.GZTAR-ZXVF redis-3.2.4.tar.gz2. Compiling the installationCD Redis-3.2.4make && make install3. Copy the
1. Connect to Redis (two ways)
1 # Decode_responses=true: Resolving the obtained value type is a bytes byte problem 2 R = Redis. Redis (host='localhost', port='6379', db=0, decode _responses=true)
1 Pool = Redis. ConnectionPool
Topshelf Packaging Redis for Windows servicesThe Redis server is currently running with a console program, and it feels better to run as a Windows service backend when deployed. Found an article running Redis as a Windows Service, implemented with
1. Download Redis server, address: https://github.com/MSOpenTech/redis/releasesContains the installer and source code.2. Unzip "Redis-x64-3.2.100.zip"Where: Redis-server.exe for the server, Redis-cli.exe for the client, redis.windows.conf for the
SummaryRedis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), Zset (sorted set-ordered collection), and hash (hash type). These data types support
Basic Redis tutorial, build, can refer to any of the following tutorials:Address One: http://www.yiibai.com/redis/redis_quick_guide.htmlAddress two: http://www.runoob.com/redis/redis-intro.htmlCaseThe following issues occurred after the first
wget http://download.redis.io/redis-stable.tar.gzTar xvzf redis-stable.tar.gzCD redis-stableMakeThe first 3 steps should be no problem, the main problem is that when you execute make, an exception occurs.Exception One:MAKE[2]: Cc:command not
String
Common commands:
Get, set, INCR, Decr mget, and so on, ordinary key/value storage can be classified as such
Hash
Common commands:
Hget,hset,hgetall and so on.
List (Queue)
Common commands:
Cluster principle-redis-cluster architecture DiagramArchitectural details :(1) all the Redis nodes connected to each other (ping-pong mechanism ), internal use of binary protocols to optimize transmission speed and bandwidth .(2) node's fail is not
Background:The company's audio and video piracy detection business, using Redis-cluster as a key-value database, using the characteristics of the picture hash value as key. Because the amount of data is too large, the machine is limited, there is no
1. Installing TCL supportYum Install Tcl2. Installing Redis We take the latest 2.8.9 as an example$ wget http://download.redis.io/releases/redis-2.8.9.tar.gz$ tar xzf redis-2.8. 9 . tar.gz$ CD Redis-2.8. 9 $ make$ Make test$ make installAfter the
Modify the configuration file/etc/redis/redis.conf (Redis with Apt-get installation)Combined with an RDB and aof, the RDB is used for the full amount, and the aof is used for incremental1. Configuring an RDBSave 900 1//every 15 minutes with 1 or
A Redis Publish Subscription (PUB/SUB) is a message communication pattern: the Sender (pub) sends a message and the Subscriber (sub) receives the message.Redis clients can subscribe to any number of channels.Shows the relationship between channel
Master-Slave function:To prevent Redis disk corruption, resulting in data loss, REDIS provides replication capabilities to automatically synchronize data from one primary database to the database to prevent data loss.At the same time can also be
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