2017 © Pedro Peláez
 

library predis-wrapper

A set of helper classes around Predis

image

burgov/predis-wrapper

A set of helper classes around Predis

  • Tuesday, August 5, 2014
  • by Burgov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 323 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 7 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PredisWrapper

Build Status Coverage Status, (*1)

A set of helper classes around the Predis library, (*2)

$client = new Burgov\PredisWrapper\Client(new Predis\Client(/* ... */));

$string = new Scalar($client, 'string_key');
$set = new Set($client, 'set_key');
$sortedSet = new SortedSet($client, 'sorted_set_key');
$hash = new Hash($client, 'hash_key');
$list = new PList($client, 'list_key'); // unfortunately, "list" is a reserved word in PHP

Or use the factory:, (*3)

$factory = new TypeFactory($client);
// when you're sure "some_key" exists. This will return an instance of the appropriate class
$factory->instantiate('some_key');
// when you're expecting "some_set_key" to be a set or non existent. Will throw exception if it is something else.
$factory->instantiateSet('some_set_key');

$factory will always try to return the same instance of a type based on the key, (*4)

See usage examples in the integration tests: - Scalar - Hash - List - Set - SortedSet, (*5)

Here is a list of all the redis commands that are wrapped (so far): Wrapped commands, (*6)

The Versions

05/08 2014

dev-master

9999999-dev

A set of helper classes around Predis

  Sources   Download

MIT

The Requires

 

The Development Requires

05/08 2014

1.1.x-dev

1.1.9999999.9999999-dev

A set of helper classes around Predis

  Sources   Download

MIT

The Requires

 

The Development Requires

18/03 2014

1.1.0

1.1.0.0

A set of helper classes around Predis

  Sources   Download

MIT

The Requires

 

The Development Requires

01/11 2013

1.0.0

1.0.0.0

A set of helper classes around Predis

  Sources   Download

MIT

The Requires

 

The Development Requires