Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

sash/php-redis

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
20 Commits
 
 
 
 
 
 

Repository files navigation

PHP5 Redis

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

Quick start

  • Install Redis from redis.io

  • Download latest php-redis class from here

  • Write some code:

      # 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

About

Redis connector for php

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.