Redis is an open-source in-memory networked key/value store that has been very popular in the Linux community and is now available for Windows developers as well, via a Windows version from Microsoft Open Technologies, Inc. In this screencast, MS Open Tech lead evangelist Doug Mahugh covers how to install Redis on Windows, the basics of key Redis features, and how to write software that takes advantage of Redis on Windows. The demo app is written in Python, using the free download of Python Tools for Visual Studio.
Redis occupies a unique niche in the OSS database landscape, offering high performance (due to its in-memory architecture and its highly optimized code base) combined with a set of simple commands that can be composed to address complex data-modeling scenarios. Common Redis use cases include caching, activity tracking, realtime analytics, and data-driven interactive features such as autocomplete and search histories. At a high level, Redis can be viewed as a technology for sharing memory across the web, so that a server can offer much faster performance than would otherwise be possible using its own RAM alone. For some ideas about how to use Redis, see Salvatore Sanfilippo's blog post How to take advantage of Redis just adding it to your stack.
If you're new to Redis, or didn't know it was available on Windows, this screencast is the place to start. It's the first in a series, and future screencasts will cover working with Redis on Windows Azure and other more advanced topics.
- MS Open Tech project page for Redis (with links to other resources)
- Redis.io - the Redis community site, including documentation and client libraries
- Python Tools for Visual Studio
Table of Contents
- 01:50 About Redis on Windows
- 02:35 Two ways to install Redis on Windows
- 03:27 The Redis server and CLI
- 05:03 Redis data structures: key/value pairs
- 07:27 Redis data structures: lists
- 11:46 Redis data structures: hashes
- 12:46 Redis data structures: sets
- 15:01 Redis data structures: sorted sets
- 23:14 Working with publish/subscribe
- 25:01 Redis client libraries
- 25:49 Python Tools for Visual Studio
- 27:11 Creating a Python/Redis project in Visual Studio
- 30:45 Writing a listener for Redis pub/sub
Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.