Download/ Install Redis and Configure
on Windows
Download
1. Open the url https://github.com/MSOpenTech/redis/releases
go to Downloads – choose the msi installer and download. Once the download is complete
double click on the mis file to start installation.
Follow the steps and while installing enable the checkbox for adding into path –
environmental variable
Install
2. Once installation is complete, go to the installed path and find the file “redis.windows-
service”
Configure
3. Configure the redis with below mentioned key values – a character ‘#’ means comment so in
order to uncomment one needs to remove the ‘#’
3.1 bind- search the file for text ‘bind’
If you are using redis for personal or local usage keep the value as “bind 127.0.0.1”
If you want other instances to connect to your redis mention as “bind ip1 ip2” (multiple
ip’s separated with space)
3.2 requirepass - search the file for text ‘requirepass’
this attribute stores the password for connecting to redis, it is always safe to use a
password. To provide a password uncomment the line of code in the file given as ‘’#
requirepass password” and replace password with your own password.
3.3 maxmemory - search the file for text ‘maxmemory’
the size of memory to be utilized for redis has to be mentioned in bytes, it is better to
provide memory of 1g that means 1gb. Uncomment the line “maxmemory bytes” and
change to “maxmemory 1g”
3.4 maxmemory-policy and maxmemory-samples
To enable the LRU- least recently used keys eviction algorithm this key should be
changed to “maxmemory-policy allkeys-lru”
And the maxmemory-samples value should be 5 as shown below
NOTE: please note that the redis service needs to be restarted after configuration changes are
updated.
Redis for command prompt
4. Redis commands for command prompt
To connect to redis type -> redis-cli
If it is password protected then type - > auth password
In the above line give the actual password after auth key and click on Enter key.
To list all the keys in redis - > keys *