Redis Introduction with PHP

Redis is an open source, in memory data structure store, which can be used either as NoSQL database or cache. It works on advanced key-value store and retrieve process. It supports various types of data structures like strings, lists, sets and hashes having lots of operations on it. It is mostly used for cache replication but it can also be used like a database as well.

Installation of Redis.

Before installing Redis you have to confirm that your system has TCL installed if not you can simply install it by executing this command.

Now to install Redis you have to follow the procedure as follows-:

Note-: Redis binary files are stored in the src subdirectory located in redis-stable directory.

To run the redis server you have to execute the command

If you want to explore some basic commands regarding redis, try their interactive tutorial.

Integrating Redis with php using Predis.

Predis is a redis client which is used to integrate the redis with php, to use the predis we have to clone it from its official repository.

Connect your php application to Redis

With the help of Redis we can perform various operations on sets, strings, hashes and lists as well as control the flow of application’s content to make it fast with the help of caching.



Category(s) php Redis
. . .

Comment (1)

Add Your Comment

  • Amazon Elastic Cache : Make your applications faster - Cloudkul
    […] Redis : Redis is an open source, in-memory data structure store, used as database, cache and message broker. For more info, follow the link :- http://cloudkul.com/blog/redis-introduction-with-php/ […]
  • css.php