Skip to Content
Migrating Applications to the Cloud with Azure
book

Migrating Applications to the Cloud with Azure

by Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
December 2019
Intermediate to advanced content levelIntermediate to advanced
494 pages
11h 41m
English
Packt Publishing
Content preview from Migrating Applications to the Cloud with Azure

Using the ServiceStack Redis API

Unfortunately, the Microsoft extension for a Redis cache is very limited. We can set and get strings and byte arrays (using the SET and GET methods), but Redis allows us to set all kinds of objects and even to alter them. Another popular package you may encounter is ServiceStack.Redis, which is recommended when you're using the full .NET Framework. There's also a .NET Core version of this package called ServiceStack.Redis.Core. In this section, we're going to install it and look at some more advanced scenarios.

First, we need to create a connection. The connection string for ServiceStack is a little bit different from the Microsoft one:

var connectionstring = "redis://[your password]=@[your DNS name].redis.cache.windows.net:6380?ssl=true"; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Migrating Applications to the Cloud

Migrating Applications to the Cloud

Steve Swoyer
Microsoft Azure: Planning, Deploying, and Managing the Cloud

Microsoft Azure: Planning, Deploying, and Managing the Cloud

Julian Soh, Marshall Copeland, Anthony Puca, Micheleen Harris

Publisher Resources

ISBN: 9781839217470Supplemental Content