Tag:redis

  • Detailed procedures for installing redis 3.0.6 and configuring the cluster under CentOS 7

    Time:2019-10-24

    Install dependencies [[email protected] ~]# yum -y install gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel gcc-c++ automake autoconf Install redis [[email protected] ~]# wget http://download.redis.io/releases/redis-3.0.6.tar.gz [[email protected] ~]# tar xvf redis-3.0.6.tar.gz [[email protected] ~]# cd redis-3.0.6/ [[email protected] redis-3.0.6]# make MALLOC=libc [[email protected] redis-3.0.6]# make install Start the server Through the commandredis-serverTo start theredis server. As you can see from […]

  • Install and configure Redis under Ubuntu16.04

    Time:2019-10-23

    Statement: the content of this article is reproduced to [Ubuntu16.04 installation and configuration of Redis] I. preconditions You need to connect to the Internet and then execute the sudo apt-get update package Execute the installation command sudo apt-get install redis-server After execution, as shown below, we enter y to confirm the installation and use the […]

  • Three popular databases of NoSQL, memcached, redis and mongodb

    Time:2019-10-21

    Preface NoSQL, generally refers to non relational database. With the continuous development of the Internet, the traditional relational database has been unable to cope with the new Internet model websites, especially the super large-scale and high concurrent SNS type pure dynamic websites, which has exposed many problems that are difficult to overcome, while the non […]

  • How to operate redis through Lua script in go language

    Time:2019-10-21

    Preface In order to reduce the communication cost with redis in one of my basic libraries, I encapsulate a series of operations into Lua scripts, and simplify the operations with the eval command provided by redis. Features that Eval can provide: Several operations can be encapsulated in Lua script. If there are multiple redis instructions, […]

  • PHP compilation and installation of redis extension

    Time:2019-10-20

    I. download and install redis official website with tutorials 2. Install the phpredis extension 1. Download the zip package: https://codeload.github.com/p…2. Unzip: unzip phpredis-development.zip3. Compile and install cd phpredis-develop #Build profile /usr/local/php7/bin/phpize ./configure –with-php-config=/usr/local/php7/bin/php-config –enable-redis make make install 4. If the installation is successful, return to the extension path, and add the path to php.ini. Find the […]

  • Simple tutorial of spring boot (VI) redis integration

    Time:2019-10-20

    We rely on the database when there are too many data storage and acquisition, but when a large number of data requests appear, the database is still a little inadequate. In this article, I’ll take you to redis. First of all, let’s create a spring boot project. I won’t be long winded here. If you […]

  • Redis publish, subscribe and implement. Net client

    Time:2019-10-20

    Preface In the design pattern, publish and subscribe can also be called observer pattern. For this pattern, it deals with one to many dependencies among objects. When an object changes, other dependent objects must be notified and updated. However, it also has its own shortcomings, that is, when a series of changes take place in […]

  • Daily use of redis Geo

    Time:2019-10-19

    Reference website Redis command PHP operation redis Environmental requirements First, make sure redis is installed and started Make sure PHP has the redis extension installed php -m | grep redis Overall list of redis related commands GEOADD GEODIST GEORADIUS GEORADIUSBYMEMBER GEOHASH Geoadd insert command Command: geoadd key longitude latitude member [longitude latitude member… ] Detailed […]

  • The perfect combination of redis streams and spark

    Time:2019-10-19

    Source: redislabsBy Roshan KumarTranslation: Kevin (public No.: Middleware) Recently, I was honored to present the topic of “spark + AI” at the spark + AI summit.“Redis + Structured Streaming:Expand the perfect mix of your continuous applications”Speech. My interest in this topic is driven by the new features that Apache spark and redis have introduced in […]

  • Implementation of multi site single sign on

    Time:2019-10-19

    Today I am writing about the implementation of single sign on under multi domain name. In such a scenario, there are multiple sites with different domain names under the company. We expect users to log in at any site and open several other sites in the logged in state. This process is single sign on. […]

  • Correct posture of unlocking redis lock

    Time:2019-10-19

    Correct posture of unlocking redis lock Redis is a good friend of PHP. In the process of writing business in PHP, sometimes the concept of lock is used. At the same time, only one person can operate a certain behavior. We’re going to use locks at this time. There are several ways to lock. PHP […]

  • Are you sure you don’t want to understand the principle of redis list?

    Time:2019-10-18

    Preface In the previous chapter, we introduced some internal principles of string. In this chapter, we will discuss the basic use and some internal implementation of list in five data structures. Basic introduction Redis’s list is equivalent to Java’s LinkedList, which is also a two-way linked list. It has some same features as LinkedList, such […]