Tag: expiration time
-
Post Views: 19 1. Reference URL:https://www.shuijingwanwq.com/2017/01/08/1505/, the process of realizing the locking mechanism of Redis under Yii2.0, its core is to use Redis SetNX. 2. Generally speaking, after the lock is successful, the corresponding business logic is executed, and then the lock is deleted. However, if the business logic is accidentally exited for some reason, resulting in a lock but…
-
Post Views: 16 1. At this stage, the realization of the third-party platform of WeChat is connected. In the interface of receiving verification tickets (receiving the WeChat server push), the token (component_access_token) will be judged in Redis Whether it exists, if not, get the token (HTTP request). It is equivalent to pushing the WeChat server every 10 minutes, which is…
