Introduction, start-up and communication of Redis database Sentinel

Sentinel (Redis 3.0.0-rc1)Sentinel is a sentinel system of Redis ha scenarios, one or more sentinel instances, that can monitor any number of primary servers (master).And all the subordinate servers (slave) of these primary servers, and when the

Brief introduction of Master-slave configuration of Redis database

Copy configuration file [Root@yum-down ~]# cd/etc/redis/[Root@yum-down redis]# CP 6379.conf 6380.conf Modify the port, and the data file name, or save location can be ' dir ' [Root@yum-down redis]# Vim 6380.conf:%s/6379/6380/gAppendfilename

Spark-stream access to Redis Database sample

Recently, a number of flow calculation handlers have been written on the Spark-stream, the program architecture is as follows The program runs on Spark-stream, and my goal is to Kafka, Redis parameters are supported at startup.

Principle and example of redis locking to prevent repetitive operation

Using Redis locking method can prevent repetitive operations, including form submission, Ajax and other HTTP requests, it is the principle of Redis incr command to the key from the increase, if the return value is not 1, it is a duplicate request,

Redis cluster PHP client Predis use Example

PHP has redis expansion, at present, still do not support Redis cluster, recommended Predis, the function of the whole, from a single, to the master and subordinate, to the cluster are supported. How efficient, you have to rely on their own to test.

LUA splits strings according to special characters; Hmget using Redis

The recent talk project used part of Lua, which was used to request very high requests, to block back at the nginx level, and to invoke a large number of PHP processes in the province.Since LUA has not been used before, the development process has

Redis implementation information Read unread status hint _redis

This article for everyone to share the Redis implementation information has read unread status prompts the key code, hoping to give you some inspiration, the specific contents are as follows Premise: If there are now 2 modules to be prompted

tutorial on installing and configuring the Redis database under the Cenos system _redis

One: Install Redis wget http://redis.googlecode.com/files/redis-2.6.14.tar.gz tar zxvf redis-2.6.14.tar.gz CD redis-2.6.14 Make Prefix=/usr/local/redis Install Two: Configure Redis Use the default profile and make a little change. 1.

Real-time collection and analysis of log in Cluster service through shell and Redis

In the statistical project, the most difficult to implement is the collection of log data. Log distribution in the country each room, and the data volume is relatively large, like rsync+inotify this way obviously can not meet the requirements of

(ii) Redis notes--Publish & Subscribe, transactions, database operations

1. Redis Publish Subscription1.1 OverviewA 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

Multi-machine database of Redis learning notes

1. Copyingfull resynchronization , full replication of data from the primary server from the server, primarily via RDB files and single commands (socket connections).partial resynchronization , the master server when the command is propagated, not

Redis bitcount variable-precision Swar algorithm

Spent less than a week to read a reids design and implementation of the book, feel that the overall design some place is really ingenious, the structure of the connection between the very close, but very simple, logical not too much, but learned a

Spring+redis (keyspace notification) implements timed tasks (order expiration automatically closes)

1. CausesRecently, the company's project to do the overdue payment needs to be automatically closed, the first thought is the spring timer (@Schedule), the results of various examples of leadership will affect performance, can only give up. Later, I

Redis concurrent processing, multithreading, and synchronized lock applications

Package Com.test.util.redis;Import Redis.clients.jedis.Jedis;Import Redis.clients.jedis.JedisPool;Import Redis.clients.jedis.JedisPoolConfig;public class Redisutil implements Runnable {Private Jedispool pool = null;public volatile int count=0;/*** @

Python generates a Redis template script

#!/usr/bin/env python#-*- encoding:utf8 -*-#--------------------------------------------------- ------------------------------------#           file:     Gen_Redis Config.py#   #           usage:    python_code_style.txt [-h] [copy pep 8]##

Using Redis for Java

The caching framework of 1.redis and Memecache is divided into server side and client.We use in the project, the equivalent of the client, to introduce the client to use the Redis jar package First you need to download the driver package,

The Windows environment. NET using Redis cache

About RedisRedis is an open source, a distributed NoSQL database system that uses the C language for "key/value" type data, characterized by high performance, persistent storage, and adapting to high concurrency scenarios. Redis is purely for the

Redis Cluster (2) Related command reference and slow query

Instance shutdown commandREDID-CLI shutdown Description: Forced bgsave on close so it takes some time note: At start, you need to load the data into memory before Redis listen the port after the data is loadedCluster-related commands1. CLUSTER Info

MyBatis combined with Redis combat level two cache (vi)

In the previous article we analyzed the first level cache, level two cache related source code and basic principles, today we share the MyBatis level two cache and Redis combination, of course MyBatis two cache can also and Ehcache, Memcache,

Example of calculating the size of various data in Redis

If the MySQL database is large, we can easily find out which tables occupy the space. However, if the Redis memory is large, it is not easy to find out which tables occupy the space) the space occupied by the key.Some tools can provide necessary

Total Pages: 315 1 .... 85 86 87 88 89 .... 315 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.