Do not turn on the automatic serialization option of php redis extension

php redis extension has the option of automatic serialization. When storing kv data, you can open it with less code, and suddenly find a depressing place in the process of use. The extension does not make type judgment on the value you want to store. Any type of value is automatically serialized, such as the following code $rd = new Redis(); $ ...

Added by badal on Sat, 04 Jan 2020 10:04:25 +0200

Installation and deployment of Redis under Linux CentOS + Construction of Redis pseudo cluster

redis Download: http://download.redis.io/releases/redis-4.0.10.tar.gz Decompress, compile and install //Extract to local directory # tar -xvf redis-4.0.10.tar.gz -C /usr/local/ //Navigate to the unzip directory # cd /usr/local/redis-4.0.10/ //Perform compilation and installation, PREFIX must be uppercase # make install ...

Added by Smackie on Fri, 03 Jan 2020 16:06:31 +0200

Distributed Lock Implemented by Single-machine redis in springboot

Distributed locks are often required in microservices to perform some tasks.For example, deleting expired data periodically requires only one to execute in multiple services. The following describes distributed locks in a less rigorous sense, because redis implements distributed locks in a rigorous sense or is more complex, using the following ...

Added by RickyF on Fri, 03 Jan 2020 09:02:48 +0200

Springboot + redis (stand-alone)

This time, I want to share with you that redis is used in spring boot integration. Here, the jedis client of redis is used (here, redis running by docker, please refer to docker quickly builds several common third-party services ), add dependencies as follows: <dependency> <groupId>redis.clients</groupId> <artifact ...

Added by kishanprasad on Thu, 02 Jan 2020 15:07:01 +0200

[thinkphp5 operation redis series tutorial] pconnect (or popen) connection

1.pconnect /** * Connects to a Redis instance or reuse a connection already established with pconnect/popen. * * The connection will not be closed on close or end of request until the php process ends. * So be patient on to many open FD's (specially on redis server side) when using persistent connection ...

Added by smith.james0 on Thu, 02 Jan 2020 11:10:13 +0200

Redis cluster command line deployment tool

Preparation before use: 1) Configure the public redis.conf file unrelated to the port, and place it in the same directory as the tool 2) Configure the PORT related template redis-PORT.conf file, and put it in the same directory as the tool (PORT will be replaced with specific PORT number during deployment) 3) Configure the node ...

Added by tony.j.jackson@o2.co.uk on Thu, 02 Jan 2020 08:13:53 +0200

LNMP Environment Setup (PHP 7.4.0)

Catalog Dead work Install wget Install net-tools Install vim Configure Display Line Number Close Firewall Install Nginx Installation Dependency Compile and install Nginx Configuring environment variables Systemd Management Install M ...

Added by terryl on Fri, 27 Dec 2019 04:51:09 +0200

How to use Redis to achieve Weibo attention relationship?

Yun Qi Hao: https://www.aliyun.com/#module-yedOfott8The first-hand cloud information, the selected cloud enterprise case base of different industries, and the best practices extracted from many successful cases help you to make cloud decision! Four kinds of relationship states of concern follow Fans Two way attention (mutual powder) No relat ...

Added by russellcox77777 on Tue, 24 Dec 2019 12:36:28 +0200

Redis distributed lock mechanism - technical support for distributed cluster deployment

There are three ways to implement the distributed lock: 1. Optimistic database lock; 2. Redis based distributed lock; 3. ZooKeeper based distributed lock. This blog will introduce the second way to implement distributed locks based on redis. Although there are various blogs about the implementation of redis distributed lock on the Internet, the ...

Added by RealDrift on Fri, 20 Dec 2019 09:50:59 +0200

Prometheus application monitoring

This paper describes how to realize the application monitoring of Prometheus Monitoring Nginx nginx: 1.16.1,nginx-vts-exporter: 0.10.3,nginx-module-vts: 1.6.3 Monitoring Nginx mainly uses the following three modules: Nginx module VTS: monitoring module of nginx, which can provide data output in JSON format. Nginx VTS exporter: it is mainly us ...

Added by TempleDMDKrazd on Wed, 18 Dec 2019 11:29:39 +0200