2017 © Pedro Peláez
 

library redis

an incomplete redis library

image

henderjon/redis

an incomplete redis library

  • Friday, October 20, 2017
  • by henderjon
  • Repository
  • 1 Watchers
  • 3 Stars
  • 23,434 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 19 Versions
  • 9 % Grown

The README.md

henderjon/redis

a simple and (in)complete redis library, (*1)

Peruse the tests or, if present, the examples directory to see usage., (*2)

Latest Stable Version Build Status, (*3)

RedisProtocol

RedisProtocol is responsible for holding a connection to a Redis server, translating PHP functions/args into the Redis protocol, and reading/writing to the connection. It allows for pipelining (via pipe()) ~~and uses __call() to allow for the variability in Redis function names and arguments~~. Extending RedisProtocol or only implemnting the trait in whose methods your interested, is simple and effective if you're 1) not interested in pub/sub and 2) familiar with Redis., (*4)

RedisSubscription

RedisSubscription is a wrapper/shorthand to the pub/sub model of Redis and returns lambdas that allow for looping/listening as part of a subscription (example). Extend RedisSubscription to get all of RedisProtocol + pub/sub in PHP., (*5)

RedisExceptions

All Redis errors are thrown as RedisExceptions. Protocol errors are thrown as RedisProtocolExceptions., (*6)

Redis

The Redis class implements all** the methods that Redis has available as of v3.0 and has a few constants for those instances where keywords are used as switches within a Redis function. It composes a series of traits that represent the divisions present in the Redis command documentation., (*7)

Interfaces are included--also broken into sections via the Redis command documentation. This allows the usage of individual traits/interfaces if only a subset of Redis functionality is desired., (*8)

I would recommend against using the PubSubTrait methods as RedisSubscription abstracts a lot of the dirty work., (*9)

There are a few instances where one Redis function has been broken into two or more PHP functions as Redis uses some keywords as arguments. For example bitop has been broken into Redis::bitopAnd(), Redis::bitopOr(), Redis::bitopXor(), Redis::bitopNot() for (potentially) clearer PHP implementation(s)., (*10)

**There are a handful of exceptions: Redis::clusterSetSlot(), Redis::echo(), and Redis::sort(), (*11)

I recommend looking through the code and the examples. However, I've auto generated some documentation for your delight and edification., (*12)

The Versions

20/10 2017

dev-master

9999999-dev http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

20/10 2017

v3.0.1

3.0.1.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

20/10 2017

dev-dev

dev-dev http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

20/10 2017

v3.0.0

3.0.0.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

09/05 2016

v2.0.10

2.0.10.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

25/02 2016

v2.0.9

2.0.9.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

18/02 2016

v2.0.8

2.0.8.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

04/02 2016

v2.0.7

2.0.7.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

16/04 2015

v2.0.6

2.0.6.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

16/04 2015

v2.0.5

2.0.5.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

14/04 2015

v2.0.4

2.0.4.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

10/04 2015

v2.0.3

2.0.3.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

03/04 2015

v2.0.2

2.0.2.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

03/04 2015

v2.0.1

2.0.1.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

02/04 2015

v2.0.0

2.0.0.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

08/10 2014

v1.2.0

1.2.0.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

01/10 2014

v1.1.0

1.1.0.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

11/04 2014

v1.0.0

1.0.0.0 http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires

11/04 2014

dev-0.1.0-dev

dev-0.1.0-dev http://github.com/henderjon/redis

an incomplete redis library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.4.0

 

The Development Requires