Category: Cache Server
-
Post Views: 15 1. Create the controller class of the cache component, \API\Controllers\CacheComponentController.php 2. Create the data layer of the resource class of the cache component (the corresponding model language package file), \common\models\redis\cachecomponent.php 3. Create the logical layer of the resource class of the cache component, \common\logics\redis\cachecomponent.php 4. In the interface application, create the resource class of the cache component,…
-
Post Views: 13 1. I wrote a blog under PHP 5.6.27 before:https://www.shuijingwanwq.com/en/2017/09/11/10209/, this time under PHP 7.0.22, as shown in Figure 1 2. Uninstall memcached, you can use the following command: as shown in Figure 2 schtasks /delete /tn memcached 3. Delete the directory: C:\memcached-1.4.5, as shown in Figure 3 4. Open the URL:https://github.com/nono303/memcached/tree/master/cygwin/x64, download: cygevent-2-0-5.dll, cygwin1.dll, memcached-1.5.1.exe, as shown…
-
Post Views: 59 1. Reference URL: https://commaster.net/content/installing-memcached-windows, as shown in Figure 1 2. Download: http://downloads.northscale.com/memcached-1.4.5-amd64.zip, as shown in Figure 2 3. Unzip to: C:\memcached-1.4.5, as shown in Figure 3 4. Run Windows PowerShell as an administrator, as shown in Figure 4 5. Execute the following command to add memcached to the task plan table: as shown in Figure 5 schtasks…
-
Post Views: 16 1. At 2017-06-18 19:36:00, that is, when the game starts, the response time of the application is 51.8ms, and the response time is normal, as shown in Figure 1 2. During the entire football game, the response time is increasing linearly, at 2017-06-18 20:30:00 to 2017-06-18 At 20:40:00, the response time decreased because the game was in…
-
Post Views: 18 1. Set the lockout time: the current UNIX timestamp + Redis lock timeout time, in seconds (3), edit the file: \common\config\params.php, as shown in Figure 1 2. Get the relevant setting parameters and edit the file: \api\models\redis\gamecategory.php, as shown in Figure 2 3. Get the Redis connection to execute the relevant commands, edit the file: \API\Models\Redis\GameCategory.php, as…
-
Post Views: 12 1. The first connection is selected, as shown in Figure 1: 2. Due to the instance type: I/O optimization, disk type: SSD cloud disk, so refer to the URL:https://help.aliyun.com/knowledge_detail/6689611.html 3. The download link of auto_fdisk_ssd.sh, as shown in Figure 2: http://aliyun_portal_storage.oss-cn-hangzhou.aliyuncs.com/help%2Fecs%2Fauto_fdisk_ssd.zip?spm=5176.776689611.0.0.DmH9za&file=help%2Fecs%2Fauto_fdisk_ssd.zip 4. Download tool: auto_fdisk_ssd.sh, after pasting the download link, you need to modify it, as shown…
-
Post Views: 15 1. The premise is to install Redis under Windows 8.1, and the configuration supports the implementation process of PHP:https://www.shuijingwanwq.com/2015/11/16/769/ Set which IPs the Redis server allows access and passwords, as shown in Figure 1 and 2: BIND 127.0.0.1 192.168.2.30 requirepass n#s7yle$r5s&mmp#w9k9*hjzaptu%hpq Command: service redis restart, restart the redis service; 2. Set the php.ini of the web…
-
Post Views: 13 1. Open the URL:http://redis.io/download, windows The Redis project does not officially support Windows. However, Microsoft Open Technology Group has developed and maintained a Redis version for Windows 64-bit. as shown in Figure 1 2. The URL is linked to:https://github.com/MSOpenTech/redis According to the prompt, you canhttp://github.com/MSOpenTech/redis/releasesDownload to the latest binary file, as shown in Figure 2 3. Download…