The topic of NoSQL is a little older and has now also arrived in productive systems. One representative of the NoSQL family is Redis. It is a very easy-to-use key-value store in memory. Redis has been available since 2009 for all common operating systems and programming languages. The main area of application for Redis is caching to speed up applications. In this short workshop you will learn everything you need to know to be able to use Redis efficiently in your PHP applications.
As with so many other technologies, the most difficult step is installing the environment. Thanks to the Docker virtualization tool, the installation can be done in no time at all in less than 5 minutes. To get Redis running we need three steps. This assumes that Docker [1] is already installed on the system. First we install the Redis server [2] and then use Redis insight [3], a graphical administration interface, to connect to the Redis server. If these two steps are successful, the Redis extension must finally be activated in the PHP installation.
So let’s start by installing the Redis server under Docker. Listing 1 shows the complete command for the command line.
Leave a Reply
You must be logged in to post a comment.