Hero Banner

Microsoft AppSource and Azure Marketplace

Learn how to grow your business by publishing your cloud solution on Microsoft AppSource and Azure Marketplace

Visitor 1

Azure Redis Cache - Setting up Cache item using PowerShell

We can store and retrieve cache items with the help of .NET StringSet and StringGet methods.

Storing Cache Item:

this.Cache.StringSet(“ProductName”, “Apple”, TimeSpan.FromMinutes(90));


Getting Cache Item:

var value = this.Cache.StringGet(“ProductName”);


Question :

  • Can we stored and retrieved Cache items using PowerShell as an alternative to .NET methods ?
  • If yes – Kindly provide sample example.