Successful instance of php operation redis cluster cluster
java operation redis cluster cluster can use jredis
php can operate redis cluster cluster in two ways:
1. Use the phpredis extension, which is a c extension with higher performance. However, the phpredis2.x extension does not work. You need to upgrade phpredis to 3.0, but there are few references for this scheme
2. Use predis, pure PHP developm ...
Posted by pacmon on Tue, 03 Dec 2019 00:57:52 -0800
mycli helper - more convenient to connect online MySQL through ssh tunnel
mycli helper
github: https://github.com/fengjx/too...
purpose
It is more convenient to use MySQL command-line client mycli to connect to remote MySQL through ssh tunnel remote server port forwarding.
The detailed usage of mycli can be found on the official website https://www.mycli.net/
Network topology
Usually, we can't connect to the online ...
Posted by drcdeath on Tue, 03 Dec 2019 00:37:20 -0800
Wechat has stopped visiting the webpage to share solutions
background
Due to the strict restrictions on wechat, domain names are inadvertently determined to be induced to share. Therefore, the company decided to investigate a set of stable, fast and high accuracy wechat domain name interception detection query interface.
The development team tried Google search for a while and found that they rarely sh ...
Posted by jmack159 on Mon, 02 Dec 2019 23:52:30 -0800
How to make WordPress Theme menu with Bootstrap
Read ahead:
WordPress Theme menu
WP? NAV? Menu
The class name (default sub menu) of the secondary menu cannot be modified when the menu display item is set using WP > NAV > menu. In this case, you can use Walker to set.
In fact, the WP? NAV? Menu() function calls an object provided by the core, namely "walker? NAV? Me ...
Posted by hackerkts on Mon, 02 Dec 2019 16:03:58 -0800
Qt write gas safety management system 22 alarm linkage
I. Preface
The alarm linkage function is not a conventional function, but a customized function for customers. For example, when the data collected by the detector is alarmed, it is not only necessary to play the alarm sound locally, store the alarm record, send the alarm message and e-mail, but also to trigger the alarm panel light to alarm. T ...
Posted by corrupshun on Mon, 02 Dec 2019 13:33:51 -0800
Efficient PHP Redis caching technology, refer to the next steps
Have you thought about how PHP can use redis as a cache?
Front and background modules share the Model layer;
However, not every Model class can be cached, which is a waste of Redis resources;
The front and back modules are free to decide whether to read data from the database or from the cache.
No redundant code;
Easy to use.Here we first show ...
Posted by grungefreak on Mon, 02 Dec 2019 13:14:20 -0800
bootstrap fileinput control + django background upload, echo simple use
1. Control Download: https://github.com/kartik-v/bootstrap-fileinput/
Official website: http://plugins.krajee.com/file-input
Files to be imported: 1. jquery.js
2,bootstrap.js bootstrap.css
3. The font awesome.css control icon uses font awesome, so it needs to be imported
4,finleinput.js fileinput.cs ...
Posted by amjohnno on Mon, 02 Dec 2019 12:22:35 -0800
JS daily question: what happened in new Vue()?
20190214 questions
What happened in new Vue()?
First of all, from the perspective of syntax, the new keyword represents the instantiation of an object in js language, while Vue is actually a class. Let's take a look at the source code
Source address https://github.com/vuejs/vue/...
// From the source code, we can see that the vue class is very ...
Posted by WhiteShade6 on Mon, 02 Dec 2019 11:31:05 -0800
The front end realizes the function of Excel import and export
introduce
Recently, a function of importing and exporting Excel has been implemented in the project. After looking up some plug-ins, we found the JS xlsx plug-in, so we tried to use it. Here, we will simply record the use methods and problems encountered.
Sheetjs JS xlsx is a plug-in that can read and write various forms. The browser supports w ...
Posted by brittny85 on Mon, 02 Dec 2019 11:07:55 -0800
Using IO stream to write files
Preface
When it is necessary to operate on files, it is inevitable to use IO flow; for example, some contents in the response results of some requests need to be stored in the business. When the file to be processed is too large, if you close the file stream frequently, it will cause a lot of overhead. When do you close it? It often causes grea ...
Posted by SkyRanger on Mon, 02 Dec 2019 09:16:12 -0800