Category:Redis

  • Introduction to 11 web application scenarios of redis

    Time:2020-1-21

    Here are 11 web application scenarios. In these scenarios, you can make full use of redis features and greatly improve efficiency. 1. Display the latest item list in the home page Redis uses a memory resident cache, which is very fast. Lpush is used to insert a content ID, which is stored in the list […]

  • Using redis to realize microblog attention relationship

    Time:2020-1-19

    Four kinds of relationship states caused by concern relationship follow Fans Two way attention (mutual powder) No relationship requirement analysis In Weibo, every user will have a list of followers and fans. Users can view their own attention, fans list, and other people’s attention, fans list. Also, show the attention status of each person in […]

  • Ten tips for redis to use correctly

    Time:2020-1-18

    Redis is very popular in the current technology community. Redis has gone a long way from a small personal project from antirez to becoming the standard of memory data storage industry. 1. Stop using keys* Okay, it may not be a good way to start this article by challenging this order, but it is probably […]

  • Redis installation tutorial diagram

    Time:2020-1-17

    Redis is one of the more popular NoSQL databases. Here is a record of the installation process of redis: 1. Introduction to installation environment: Redis version:redis-3.0.1 Linux version:Red Hat Enterprise Linux Workstation release 7.0 (Maipo) 2. Download the required redis fileDownload the latest stable version at http://redis.io. The download here is redis-3.0.1.tar.gz 3. Put the […]

  • A tutorial of installing and configuring redis database under the cenos system

    Time:2020-1-16

    1: 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 2: Configure redis Use the default configuration file, with a few changes 1. As a rule, the configuration file is placed in the source installation folder for easy management mkdir /usr/local/redis/etc/ cp redis-2.6.14/redis.conf /usr/local/redis/etc/ 2. Modify the configuration file / usr / […]

  • Implementation of distributed lock and task queue based on redis

    Time:2020-1-15

    I. Preface Shortly after the double 11, we all know that there are many seconds killing activities on tmall, Jingdong, Suning and other e-commerce websites. For example, when snapping up a mobile phone with the original price of 1999 and the current price of 999 seconds, it will usher in a peak period of user […]

  • Research on implementation of distributed lock to improve performance on redis

    Time:2020-1-14

    Background: In many Internet product applications, some scenarios need to be locked, such as: seckill, global incremental ID, floor generation and so on. Most of the solutions are based on DB. Redis is a single process and single thread mode. It uses queue mode to change concurrent access into serial access, and there is no […]

  • How to use redis caching tool in Windows

    Time:2020-1-13

    I. Introduction redisIs a key value storage system. Similar to memcached, it supports more value types, including string, list, set and Zset. These data types support push / pop, add / remove, intersection, union, difference, and richer operations, all of which are atomic. On this basis, redis supports various sorting methods. Like memcached, data is […]

  • Basic installation and configuration of redis database under CentOS

    Time:2020-1-12

    Redis is an open-source multi platform data storage software. It is written in ANSI C and uses data sets directly in memory, which makes it very efficient. Redis supports multiple programming languages, including Lua, C, Java, python, Perl, PHP and many other languages. Redis has a small amount of code, only about 30000 lines. It […]

  • Redis integrates spring and uses cache instances

    Time:2020-1-11

    1、 About redis What is redis? Redis is a key value storage system. Similar to memcached, it supports more value types, including string, list, set, Zset and hash. These data types support push / pop, add / remove, intersection, union, difference, and richer operations, all of which are atomic. On this basis, redis supports various […]

  • Install redis and set related services under Linux

    Time:2020-1-10

    I. Introduction Redis is an open source, advanced key value storage and perfect solution for building high-performance and scalable web applications. Redis inherits three main features from many of its competitions: Redis database is completely in memory, and disk is only used for persistence. Compared with many key value data stores, redis has a relatively […]

  • The performance of the hgetall function of redis

    Time:2020-1-9

    Before I paid no attention to this function, I used the data storage method of Memcache all the time. But since redis was replaced, it is very convenient for Memcache to store and retrieve data of a hash. But the problem is that if the list of a hash is not large enough, I can […]