Category:Redis

  • Redis configuration file redis.conf in Chinese (based on 2.4)

    Time:2020-3-29

    Copy codeThe code is as follows: #Redis sample profile #Note unit problem: when setting memory size, common formats like 1K, 5GB and 4m can be used:## 1k => 1000 bytes# 1kb => 1024 bytes# 1m => 1000000 bytes# 1mb => 1024*1024 bytes# 1g => 1000000000 bytes# 1gb => 1024*1024*1024 bytes##The unit is case insensitive, so […]

  • Redis master-slave replication and capacity expansion

    Time:2020-3-28

    1、 Solve master-slave replication problems When redis is used as the storage engine and redis is used for read-write separation, the slave machine is used for read. When the slave machine is down or disconnected from the host machine, the host machine needs to be reconnected. Reconnecting the host machine will trigger a full amount […]

  • Redis database installation and configuration method

    Time:2020-3-27

    Redis is a high-performance key value database. The emergence of redis largely compensates for the shortage of memcached keyValue storage, which can play a good complementary role to relational databases in some cases. It provides python, ruby, Erlang, PHP client, which is very convenient to use. The problem is that this project is still very […]

  • Some suggestions for redis to play a greater role in your system

    Time:2020-3-26

    Redis is different from other database solutions in many aspects: it uses memory to provide main storage support, but only uses hard disk for persistent storage; its data model is very unique, using a single thread. Another big difference is that you can use redis functions in the development environment, but you don’t need to […]

  • Summary of redis common commands

    Time:2020-3-25

    1、redis-benchmarkRedis benchmark information, redis server performance test redis-benchmark -h localhost -p 6379 -c 100 -n 100000100 concurrent connections, 100000 requests, performance of redis server with localhost port of 6379 detected [[email protected] redis-1.2.6]# redis-benchmark -h localhost -p 6379 -c 100 -n 100000 ====== PING ====== 10001 requests completed in 0.41 seconds 50 parallel clients 3 bytes […]

  • RPC remote method call through redis (supporting multiple programming languages)

    Time:2020-3-24

    One of the things I’ve found that I’m constantly researching and excited about is extending the system. Now it means different things to different people. As part of porting monolithic to microservices architecture, how to deal with microservices architecture is the reason why I study RPC. RPC (or remote process call) is a concept that […]

  • Tutorial of installing redis under 64 bit windows

    Time:2020-3-23

    Redis is officially supported for Linux. There is nothing to say about the installation and use of redis. For general use, follow the official instructions and you can finish it in 5 minutes. For details, please refer to: http://redis.io/download But sometimes you want to toss about redis under windows. You can see the following prompt […]

  • Introduction to the use scenarios of five data structures in redis

    Time:2020-3-22

    1、 Redis data structure usage scenario I’ve read the book redisbook, and I’m familiar with the basic functions of redis. I’ve read the source code of redis since last week. At present, the goal is to eat through the data structure of redis. We all know that there are five data structures in redis. What […]

  • Super detailed introduction to redis database

    Time:2020-3-21

    [contents of this tutorial] 1. What is redis2. Who is the author of redis3. Who is using redis4. Learn to install redis5. Learn to start redis6. Use redis client7. Redis data structure – Introduction8. Redis data structure – strings9. Redis data structure – Lists10. Redis data structure – Collection11. Redis data structure – ordered set12. […]

  • Installation process and configuration parameters of redis under CentOS Linux system

    Time:2020-3-20

    Installation process: Copy codeThe code is as follows: wget http://code.google.com/p/redis/downloads/detail?name=redis-2.0.4.tar.gz tar xvzf redis-2.0.4.tar.gz cd  redis-2.0.4 make mkdir /home/redis cp redis-server  /home/redis cp redis-benchmark  /home/redis cp redis-cli  /home/redis cp redis.conf  /home/redis cd  /home/redis The sudo command may be needed during the installation process. New users in the newly installed RedHat virtual machine may not be able […]

  • Using redis dump to export, import and restore data instances in redis

    Time:2020-3-19

    For the backup and restore of redis, the third-party tool, redis dump, is used 1. Install redis dump Copy codeThe code is as follows: [root @ localhost tank] ා Yum install ruby rubygems Ruby devel / / install rubygems and related packages[root @ localhost tank] ා gem sources – a http://ruby.taobao.org/ / / source, join […]

  • Redis batch delete key method

    Time:2020-3-18

    There is an instruction del to delete a single key in redis, but it seems that there is no instruction to batch delete the key. However, we can use the xargs instruction of Linux to complete this action. Copy codeThe code is as follows: redis-cli keys “*” | xargs redis-cli del //If redis cli is […]