PHP code example of geek1992 / tools

1. Go to this page and download the library: Download geek1992/tools 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/ */

    

geek1992 / tools example snippets

$xslt
$config = [
    'host'       => '127.0.0.1',
    'port'       => 6379,
    'auth'   => '',
    'select'     => 0,
    'timeout'    => 0,
    'expire'     => 0,
    'persistent' => false,
    'prefix'     => '',
];
$redis = \geek1992\redis\library\Redis::getInstance($config);

$redis->set('a', 1);

print_r($redis->get('a'));