Redis does not officially support Windows, but there are multiple ways to get you started in working with this great product. The redis.io website talks about cloning the source from the Microsoft Open Technologies Github site and building it yourself.
In the next section, I’ll show you in 10 steps how to have a working Redis installation.
Redis is an open source (BSD licensed), in-memory data structure store, used as database, cache and message broker. It supports data structures such as strings, hashes, lists, sets,sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster
These recommendations are for development purposes only. There are tons of information for deploying Redis in production.
- Windows OS (Can be Server or Desktop – I’ve tried this using Windows 10)
- Visual Studio (I’ve tried this using Visual Studio 2015)
- A bit of knowledge on Nuget
- Open up Visual Studio
- Create a Console Application (or any project which will allow you to install a Nuget package)
- Once your solution has fully loaded, click on the Tools menu, drill in to the Nuget Package Manager and click on the Package Manager Console.
- Inside the Package Manager Console, type the command Install-Package Redis-64 in the PM> prompt and hit the Enter key.
- Once the installation is complete, right-click on your Solution and click on the Open Folder in File Explorer.
- Inside the file explorer you will see the packages folder. Drill in until you see the tools folder.
- Copy the tools folder and paste it to the top most folder of your system drive. If you have more than one drive or volume, use the additional volume instead.
- Rename the tools folder to redis.
- Drill in the redis folder you just renamed to and you will see all of the binaries you will need to start redis.
- Install redis-server as a service. The instructions are in the Windows Service Documentation Word document.