Here is a shell script to manage the Redis process (start, stop, restart), which is a script for reference.#!/bin/sh## Redis-this script starts and stops the Redis-server daemon## Chkconfig:-85 15# Description:redis is a persistent key-value
C # Redis
Publish subscription model
Publish subscriptions in Redis
Client Programming examples
0.3 version Hredis
Publish subscription modelAt the application level its role is to reduce dependencies, often also called
Requirements
Essential knowledgeFamiliar with basic programming environment construction.
Operating EnvironmentWindows 7 (64-bit);redis64-2.8.17
Environment download
What is RedisRedis is a key-value storage
The Redis server is responsible for establishing connections with multiple clients, processing client requests, and saving individual database state. By using an event handler implemented by I/O multiplexing technology, the Redis server uses
Data types for RedisString type and operationString is the simplest type, and a key corresponding to a value,sting type is binary safe. A Redis string can contain any data, such as a JPG image or a serialized object.Example:Set name GxjGet
Original address: http://blog.sina.com.cn/s/blog_505bf9af0101ehhp.htmlRedis installation, configurationThe installation steps are as follows:To download the Redis installation package:$ cd/opt/app (can choose the installation directory according to
Original: Redis Core interpretationRedis is a well-known key-value database that is widely used in caching systems. Information about Redis has not been introduced to me much. The Redis article of this system is mainly concerned from another angle,
Java side when using Jedispool to connect Redis, when high concurrency often die, or report connection anomalies,jedisconnectionexception, or getresource anomalies and other problemsBe sure to pay attention to two points when using Jedispool.1. Add
One. NET using RedisLike MongoDB, using Redis in. NET is actually using a third-party driver, and the official website recommends using Servicestack.redis (Https://github.com/ServiceStack/ServiceStack.Redis)Click Download package, unzip Servicestack.
0. Redis Series-Installation and Deployment Maintenance Chapter1. Redis Series-Remotely connect to Redis and lock Redis2. Redis Series-Storage Chapter a summary of the main operational functions of string3. Redis Series-Storage list main Operation
Official website Command list: http://redis.io/commands (English)1. Commands related to connection operation
Quit: Close connection (connection)
Auth: simple Password Authentication
2. Commands for value operations
Exists (
CollectionAdd/Remove elementsSadd Key Member1 Member2 ...Srem Key Member1 Member2 ...Get all the elements in the collectionSmembers Key127.0.0.1:6380>sadd car benz Baoma Xiandai (integer)3127.0.0.1:6380>smembers Car1)"Baoma"2)"Xiandai"3)"Benz"127.0.0
Previously, have been taking redis when memcached to use, today only really learned that Redis really stronger than memcached where, his real strength to where.The first thing that confuses me most is, is redis all the data stored in memory? This
About RedisREDIS Storage Structure Type: String type, hash type, list type, collection type, ordered collection type.Redis memory storage and persistence: The data in the Redis database is stored in memory and the memory reads and writes faster than
# Redis configuration file# When you need to configure memory size in the configuration, you can use 1k, 5GB, 4M and other similar formats, which are converted in the following ways (case insensitive)## 1k =bytes# 1kb = 1024x768 bytes# 1m = 1000000
Redis (ii) Advanced usageTransactionsA Redis transaction is a collection of a set of commands. A transaction, like a command, is the smallest execution unit of Redis, and commands in one transaction are either executed or not executed.You first need
EXPIREKeysecondsAvailable since 1.0.0.Time Complexity: O (1)Sets an expiration time for the specified key. When the expiration time expires, the key will be deleted automatically. If you use the DEL command to remove this key, either use the SET
Visually, the data in the database is stored on a table, and more microscopically, the tables are stored on a row. Each execution of aSecondary select query, the database returns a result set that consists of several rows. So, a naturalThe idea is
Redis can also be distributed through clustering, sharing data through shards, and providing replication and failover. The current Redis version of the cluster feature has not been formally released, is currently only an unstable branch, it is said
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.