PHP code example of 104lab / laravel-redis
1. Go to this page and download the library: Download 104lab/laravel-redis library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
104lab / laravel-redis example snippets
$connection = Redis::connection();
# Before
$keys = $connection->keys('foo:*');
# After
$keys = (new KeysByScan($connection))('foo:*');
# Use chunk limit
$keys = (new KeysByScan($connection))('foo:*', 100);
# Use usleep, default is 10
$keys = (new KeysByScan($connection))('foo:*', 100, 10);