Category: Redis
-
Post Views: 15 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…
-
Post Views: 14 1. Reference URL:https://blog.csdn.net/zhanghan18333611647/article/details/81434786. Implemented through the program (Python version 2.x ). Create a new migrate.py file. 2. On the self-built Redis machine, connect the self-built Redis and Tencent Cloud come with Redis. Tencent Cloud’s own redis database 0 is empty. It is planned to use this database as the migration target. as shown in Figure 1 3.…
-
Post Views: 15 1. An error is reported during the database migration of Yii 2.0: Exception: Redis Error: ERR client sent auth, but no password is set. as shown in Figure 1 2. Open the terminal and connect to redis-cli, and test the auth redis. Error: (Error) ERR client sent auth, but no password is set 3. Edit redis.windows.conf and…
-
Post Views: 12 1. In Yii 2.0, the active record of Redis (Active Record) is based on the view structure, which is inconsistent with the order of the model fields. as shown in Figure 1 2. Check the Redis activity record class, /common/models/redis/douyinwebappUserAccessToken.php 3. Print the model object of redis (before the update), $redisdouyinWebAppUserAccessToken. 4. Print the model object of…
-
Post Views: 16 1. Yii2 queue extension, in the Redis driver, when the info command prints information about the queue status, the queue of the reserved state has always existed. Check the system log, there is no abnormal output. Reference URL:https://www.shuijingwanwq.com/2019/12/16/3737/. as shown in Figure 1 2. Check the running status of supervisord: supervisorctl status. Delete the task group queue,…
-
Post Views: 13 1. In Yii 2.0, the realization of health check, a colleague implemented a version before, I feel that it is necessary to adjust it again 2. The analysis code found that yii::$app->db->getisActive() is unnecessary. View the source code of the corresponding method separately. The related implementation of $this->pdo in getIsActive() already exists in open() . 3. Analyze…
-
Post Views: 13 1. The request interface, the total number of resources in the response parameters is 30. Resources containing ids equal to 37918 are duplicates. A total of 2. as shown in Figure 1 2. Check the model class, /common/models/redis/cmc_console/user.php 3. Check /common/components/redis/activerecord.php , which defines the prefix and applies to all AR keys. 4. Open RedisDesktopManager, check the…
-
Post Views: 17 1. Docker deployment, the implementation of Crontab (Bash Sleep) based on Supervisor, to reduce memory usage, refer to:https://www.shuijingwanwq.com/2019/10/12/3555/. /console/controllers/cmcConsoleUserController.php 2. Break ends the execution of the current Foreach structure, that is, each run of the command line, only the user list under the tenant is successfully synchronized. When there are too many tenants, suppose 100 tenants, the…