Search code examples
azure.net-coreazure-redis-cacheazure-cachingredistimeseries

How to use RedisTimeSeries module in Azure Cache for Redis?


I would like to use RedisTimeSeries module (latest feature) in Redis from .net core client in Azure.

  1. I created Azure Cache for Redis (from RedisLabs) (https://azure.microsoft.com/en-us/services/cache/) standard resource in the Azure portal.
  2. Downloaded the .net redis samples code from https://github.com/rustd/RedisSamples.
  3. When I compiled samples code, it downloaded the nuget package called StackExchange.Redis (among other libraries).
  4. Played with samples to understand how redis works from .net client.
  5. It appears that raw REDIS commands where wrapped by StackExchange.Redis library.

Next, I wanted to play with RedisTimeSeries (as described at https://github.com/RedisTimeSeries/RedisTimeSeries).

The StackExchange.Redis .net library does not seem to provide any API to invoke RedisTimeSeries module related commands such as TS.CREATE, TS.ADD etc.

Here are my questions:

  1. Is RedisTimeSeries module supported in Azure Cache for Redis (from RedisLabs)?
  2. If supported, how do I invoke TS related commands from my .net core client?
  3. If not supported, is there any other .net library that lets me do this?

Solution

    1. Is RedisTimeSeries module supported in Azure Cache for Redis (from RedisLabs)?

    Azure Cache for Redis, is not from RedisLabs but from MS, the only Redis vendor who currently supports Modules deployments is RedisLabs Cloud Pro (see: https://redislabs.com/redis-enterprise/deployments/ and https://redislabs.com/partner/microsoft/)

    1. If supported, how do I invoke TS related commands from my .net core client?

    DbSync.Execute("MyCommand", args)