Redis has steadily established itself as a great choice of infrastructure in modern solutions. Redis is a data structures server, which provides an interface of commands used to interact with mutable data. Developers use Redis as a key/value store for quick lookups with known keys, commonly in caching. A developer operating with .NET will most likely be using the StackExchange.Redis package to access their server instance. While connection strings for Redis can vary, many online hosting platforms provide a redis-cli connection string.
This post will see how we can write an extension method that parses a redis-cli connection string we can use with the StackExchange.Redis library.