I am using StackExchange.Redis client to access Azure Redis Cache. I am creating a hashset as below:
Database.HashSet("HashSetKey", "EntryKey", "EntryValue");
Database.KeyExpire("HashSetKey", TimeSpan.MaxValue);
Even though I am specifying expiry as TimeSpan.MaxValue the hashset is deleted after few minutes of not being used.
What am i missing ?