The Hyperf framework is designed to prevent the proxy cache from not updating after the user updates the component, resulting in a startup error. The following hooks have been added.
The init-proxy.sh script executes the PHP bin / h ...
Posted by aisalen on Tue, 07 Apr 2020 01:16:34 -0700
Constructors and Destructors
Class calls this method every time a new object is created, so it's a good place to do some initialization before using the object.
Destructors execute when all references to an object are deleted or when the object is explicitly destroyed.
class MyDestructa ...
Posted by Caesar on Mon, 06 Apr 2020 01:57:18 -0700
1. Lock API
1. Locks package class hierarchy
2. Lock interface
Acquire locks (endless)
Acquire locks (just try it)
boolean tryLock(long time, TimeUnit unit) throws InterruptedException;
Acquire locks (out of date)
void lockInterruptibly() throws InterruptedException;
Posted by Smasher on Sun, 05 Apr 2020 17:27:36 -0700
Because the project needs to apply for a new server, it is necessary to reconfigure the environment.
One click installation of four dependencies:
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
Enter / usr/local/src directory and create nginx folder
Enter the nginx ...
Posted by jasonman1 on Sun, 05 Apr 2020 14:12:46 -0700
Today we share with you the well-known LRU algorithm. The first lecture consists of four sections.
Overview of LRU
Overview of Redis Near LRU
Part I: Overview of LRU
LRU is an abbreviation for Least Recently Used, translated as least recently used.Its rationale is that "recently used data will remain in use f ...
Posted by verdrm on Sun, 05 Apr 2020 11:46:20 -0700
Hello, I'm miniluo. For positions requiring distributed experience, interviewers always like to ask questions about distributed locks. Recently, I have the honor to participate in the company's interview, and I often ask about the knowledge of distributed locks. Most of the candidates' answers are more limited to using, and they have not though ...
Posted by Sekka on Sun, 05 Apr 2020 01:39:05 -0700
Online project publishing generally has the following schemes:
Blue green deployment
This kind of release is usually released at night or during major version upgrade. Because it needs to be stopped, now everyone is studying Devops scheme.
Blue green deployment requires t ...
Posted by Maq on Sat, 04 Apr 2020 23:15:39 -0700
Adlist is one of the basic data structures of Redis. It is a two-way linked list and records the length of the linked list. The iterator of adlist records the iteration node and direction. I think the implementation of list is better than STL
Several important structures
The implementation of adlist is relatively simp ...
Posted by regexpert on Sat, 04 Apr 2020 09:06:09 -0700
First thanks easyWechat Author, provides a very useful SDK!
Next thanks Feishan Snow Leopard Although I took a lot of detours after reading this post (I was too foolish), without this post, I just looked at the WeChat documents and had no idea at all.
Finally, greet the author of the WeChat document!!!
WeChat posted the detected documen ...
Posted by renesis on Fri, 03 Apr 2020 18:22:05 -0700
Because the front-end needs user information userInfo, and the back-end modules, such as reports, also need user information, the frequency of query is very high, involving more linked tables.
However, the actual system users are small and the data is basically unchanged. For the convenience of each module, it is decided to adopt caching.
Posted by Grim... on Fri, 03 Apr 2020 13:30:28 -0700