2017 © Pedro Peláez
 

library x-redis

Redis Client for phpredis

image

limingxinleo/x-redis

Redis Client for phpredis

  • Thursday, May 3, 2018
  • by limingxinleo
  • Repository
  • 1 Watchers
  • 7 Stars
  • 2,976 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 62 % Grown

The README.md

X-Redis

Build Status, (*1)

安装

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

The Versions

03/05 2018

dev-master

9999999-dev

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis >=3.0

 

The Development Requires

by 李铭昕

03/05 2018

1.0.4

1.0.4.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis >=3.0

 

The Development Requires

by 李铭昕

18/03 2018

1.0.3

1.0.3.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis >=3.0

 

The Development Requires

by 李铭昕

02/03 2018

1.0.2

1.0.2.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕

02/03 2018

1.0.1

1.0.1.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕

21/11 2017

0.1.1

0.1.1.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕

21/11 2017

1.0.0

1.0.0.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕

21/11 2017

0.1.0

0.1.0.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕

22/09 2017

0.0.1

0.0.1.0

Redis Client for phpredis

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-redis ^3.0

 

The Development Requires

by 李铭昕