Category: Redis 3.0
-
Post Views: 17 1. Reference:https://www.shuijingwanwq.com/en/2022/12/13/9977/. Run .sh or shell script files using WSL in Windows 10. Ultimately not realized. 2. Reference:https://www.shuijingwanwq.com/en/2021/12/23/9949/, to step 7 3. Open the Windows Terminal command line and follow the instructions below to enter the Ubuntu system. as shown in Figure 1 4. Ubuntu will mount or provide all Windows directories under /mnt. Hence the C…
-
Post Views: 16 1. The current implementation principle of the theme editor is: when a configuration item in the editor changes, the temporary storage API of the backend will be requested to cache the data to Redis. When the user clicks the save button, the save API of the backend is requested, and the data will be read from Redis…
-
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: 15 1. In the console command of Yii 2.0, an error is reported: yii\db\exception: redis error: err Invalid DB index Redis command was: Select 29 in /vendor/yiisoft/yii2-redis/src/connection.php:736, view /console/runtime/logs/app.log 2. The analysis found that when executing the command: Select 29, switch to the corresponding database: 29 errors, and a Redis instance has 16 databases by default, from 0…
-
Post Views: 13 1. Error in Yii 2.0: Calling unknown method yii2tech\\ar\\softdelete\\softdeleteBehavior::IsTransactional(), as shown in Figure 1 2. Check the code, because the operation of the Redis model uses soft delete (SoftDelete) 3. Edit the code, and use the hard delete (delete) to delete the Redis model 4. Summary: In Yii 2.0, yii2tech\ar\\softdelete\\softdeleteBehavior does not support the soft deletion of…
-
Post Views: 14 1. In Postman, open the URL:http://api.pcs-api.localhost/v1/plan-config-column-users?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=685f805f71faedfe215f55bbb01b50c6&filter[config_column_id]=1 , only the fields are supported: config_column_id queries, the response is as follows: 2. The SQL statement is as follows: 3. Existing new requirements need to support the fuzzy query of user_nick, but the field: user_nick does not exist in mysql ActiveRecord, but exists in Redis ActiveRecord. And Redis ActiveRecord does…