2017 © Pedro Peláez
 

library php-redis

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis

image

galvani/php-redis

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis

  • Thursday, April 4, 2013
  • by galvani
  • Repository
  • 1 Watchers
  • 0 Stars
  • 125 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

PHP5 Redis

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis, (*1)

Quick start

  • Install Redis from redis.io
  • Download latest php-redis class from here
  • Write some code:, (*2)

    # Connecting
    $r = new Redis('localhost', 6379);
    
    # Save some value
    $r->some_key = 'hello world';
    
    # Outputting it
    echo $r->some_key;
    
    # Call any redis method (including methods added in redis 2.*)
    echo $r->zcard('zkey');

Changelog

1.0 - Initial implementation with all functions implemented up to redis 1.0
1.1 - The unified request protocol is used (intruduced in redis 1.2). 
    - Redis implements the __call magic method. Any non-implemented redis method can be called via ->methodname(param1, ...)
1.2 - pipeline support. ->pipeline_begin() and then execute any number of commands - each will return null
    Then run ->pipeline_responses() to get all of the responses as array and end the pipeline mode

The Versions

04/04 2013

dev-master

9999999-dev

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis

  Sources   Download

The Requires

  • php >=5.3

 

04/04 2013

1.3.1

1.3.1.0

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis

  Sources   Download

The Requires

  • php >=5.3

 

04/04 2013

1.3.0

1.3.0.0

php-redis contains php5 class for connecting with redis database with methods for all available commands in redis

  Sources   Download

The Requires

  • php >=5.3