Tag:redis

  • [redis] pipeline packaging processing mode

    Time:2019-12-15

    Redis itself is a TCP server in CS mode. The client can send multiple requests through a socket. After each request command is issued, the client will usually block and wait for the redis server to process. After the redis server finishes processing, the result will be returned to the client. Because we know that […]

  • Using cellery in Django

    Time:2019-12-15

    For high latency tasks, it will lead to a very bad experience if they are processed directly in a network request,celeryYou can not block requests to process these tasks in the background, and you canUsing Django’s models for database operation. Environmental Science python models: celery-4.1.1 redis-2.10.6 django-1.11.7 Other: redis-3.2.9 macos python3.6 Create Django project django-admin […]

  • Redis + Lua implementation of distributed current limiter

    Time:2019-12-15

    LastModified: 10:37:39, June 14, 2019 It mainly relies on redis + Lua to implement the current limiter. The reason for using Lua is to combine multiple commands as an atomic operation, without too much consideration of concurrency counter mode principle Counter algorithm refers to a fixed number of requests allowed to pass in a period […]

  • Redis realizes the function of multi person and multi chat room

    Time:2019-12-15

    This article shared the design code of redis supporting the function of multi person and multi chat room for your reference. The specific content is as follows design principle The data field on the left represents two chat rooms with ID 827729 In the 827 chat room, there are two people, Jason 22 and Jeff […]

  • Analysis of laravel based on redis queue

    Time:2019-12-14

    Last modified: May 10, 2019 15:04:22 Reference link Use the knowledge that laravel queue has to understand Laravel queue document Redis Chinese document Article environment Laravel 5.5 Queue Redis Why use queues The purpose of using queues is generally: Asynchronous execution Error retry Explain: Asynchronous execution: some code execution is time-consuming. In order to improve […]

  • A detailed explanation of several common interview questions on the basis of mybatis

    Time:2019-12-14

    (Original link:http://www.studyshare.cn/blog… I. should resulttype or resultmap be used in development? Force to use resultmap instead of using resultclass as the return parameter. Even if the attribute name of the class corresponds to the database field one by one, you need to use resultmap to enter Row definition. On the contrary, each table must have […]

  • Talk about the correct implementation of redis distributed lock

    Time:2019-12-14

    Recently, in the training task arranged by the school, our group needs to complete a set of Distributed & Micro service cross-border e-commerce. Although this topic seems a bit old-fashioned, and most of our teammates are Java technology stacks, so I am honored (forced)We used the swoole of PHP to help the students in charge […]

  • Redis installation, operation and uninstallation

    Time:2019-12-14

    Because my server is CentOS, I will only talk about the installation, operation and uninstallation under CentOS! I. unloading Before writing this article, my server has been installed with redis, so uninstall it first First, check whether redis is running. If it is running, close it first You can see from the figure that redis […]

  • Details of installing redis database in CentOS 7 environment

    Time:2019-12-14

    As we know, redis is an open source, BSD license based, memory based, key value storage NoSQL database. Redis is often regarded as a data structure server, because redis supports string, hash hashes, list lists, set sets, ordered set sorted sets and other data structures. Redis also supports data types such as transactional transitions, publishing, […]

  • Add cache to webplus

    Time:2019-12-13

    In the previous article, we added a page for user management, which looks low, but we should learn. Today, add redis as the cache. 1 why cache When the amount of user access increases, the concurrent amount will increase, and the pressure of database query will increase at the same time. Although the query speed […]

  • Redis talk

    Time:2019-12-13

    Here are the basic knowledge points of redis: Single process: a single process model to handle client requests. The response to events such as reading and writing is achieved by wrapping the epoll function. The actual processing speed of redis depends entirely on the execution rate of the main process. Epoll is an improved epoll […]

  • Essential tips for getting started with Linux (e-Book)

    Time:2019-12-13

    0 basic introduction Linux system operation and maintenance essential secret collection Many years ago, migrant workers taught themselves Linux system on the basis of 0. It was very hard along the way. Why write this e-book? It’s because the migrant workers encountered many difficulties and troubles when they were learning Linux, because there are too […]