Download the PHP package limingxinleo/x-redis without Composer
On this page you can find all versions of the php package limingxinleo/x-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package x-redis
X-Redis
安装
composer require limingxinleo/x-redis
使用
<?php
use Xin\Redis;
$redis = Redis::getInstance();
$redis->set('key','val');
echo $redis->get('key'); // val
使用LuaCommand
<?php
use Xin\Redis\Commands;
use Xin\Redis;
$command = new Commands\IncrByWithExpireTimeCommand($this->key, 5, 3600);
$redis = Redis::getInstance();
$res = $redis->evaluate($command->getScript(), $command->getArguments(), $command->getNumKeys());
echo $res; // 5
$time = $redis->ttl($this->key);
echo $time; // 3600
sleep(1);
$res = $redis->evaluate($command->getScript(), $command->getArguments(), $command->getNumKeys());
echo $res; // 10
$time = $redis->ttl($this->key);
echo $time; // 3599
All versions of x-redis with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
ext-redis Version >=3.0
ext-redis Version >=3.0
The package limingxinleo/x-redis contains the following files
Loading the files please wait ....