Redis is an open source, BSD licensed, advanced key-value store. It is often referred to as a data structure server, since the keys can contain strings, hashes, lists, sets and sorted sets.
You can install Redis on any operating system. Generally, install Redis from a package provided for your OS.
This will solve dependencies problem and take care of security updates.
Here are the instructions OS.
Redis can be installed from multiple sources:
Installation on Debian/Ubuntu
curl -fsSL https://packages.redis.io/gpg | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list sudo apt-get update sudo apt-get install redis
After installation of Redis, then, run start Redis services:
sudo service redis-server start
For more information check the documentation of your OS's package management system.
Installation from source core repo
You need to download the phpredis from github repository
git clone https://github.com/phpredis/phpredis.git cd phpredis phpize ./configure [--enable-redis-igbinary] [--enable-redis-msgpack] [--enable-redis-lzf [--with-liblzf[=DIR]]] [--enable-redis-zstd] make && make install
brew install redis
to start Redis:
redis-server
Redis is not officially supported on Windows, so it recommended to use Docker or WSL.
For :
You can run Redis using a Docker container.
For more details go to Redis hub
Now that Redis is installed, you can test it by running redis-cli ping. This will output "PONG".
$ redis-cli ping PONG
To use Redis with Tiki, Tiki needs to install the Redis php extension. This extension provides an API for communicating with Redis.
First get pecl
sudo apt install pkg-php-tools
Then
sudo pecl install redis
Now, copy and paste the content of “modules” folder to the PHP extension directory and add the following lines in php.ini.
extension = redis.so
Now, your Redis PHP installation is complete.
Restart apache services
sudo systemctl restart apache2
Then you are, everything is ready to work with Redis on Tiki, for more detail How to use Redis on tiki.
For more detail you can check:
Redis source
Redis Installation
DockerInstallation
Install WLS
Enable WLS
Docker redis hub