Updated packages

This commit is contained in:
Kwoth
2022-05-12 23:56:12 +02:00
parent 1db97decd1
commit cb865d5012
8 changed files with 32 additions and 24 deletions

View File

@@ -147,8 +147,10 @@ public class RedisCache : IDataCache
if (db.StringSet($"{_redisKey}_ratelimit_{id}_{name}",
0, // i don't use the value
TimeSpan.FromSeconds(expireIn),
When.NotExists))
when: When.NotExists))
{
return null;
}
return db.KeyTimeToLive($"{_redisKey}_ratelimit_{id}_{name}");
}