PHP code example of alex-kalanis / redis-wrapper
1. Go to this page and download the library: Download alex-kalanis/redis-wrapper 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/ */
alex-kalanis / redis-wrapper example snippets
$redis = new \Redis();
RedisWrapper::setRedis($redis);
RedisWrapper::register();
$redis = new \Predis\Client();
PredisWrapper::setRedisClient($redis);
PredisWrapper::register();
file_get_contents('redis://any/key/in/redis/storage');
file_put_contents('redis://another/key/in/storage', 'add something');