Skip to content

Commit bf4d9b9

Browse files
authored
HMSET is deprecated, but used by Microsoft.Extensions.Caching.StackExchangeRedis #28371 (#28844)
Change the script to use HSET instead of HMSET . https://redis.io/commands/hmset - doc link for the HMSET deco
1 parent 1172501 commit bf4d9b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Caching/StackExchangeRedis/src/RedisCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class RedisCache : IDistributedCache, IDisposable
2020
// ARGV[4] = data - byte[]
2121
// this order should not change LUA script depends on it
2222
private const string SetScript = (@"
23-
redis.call('HMSET', KEYS[1], 'absexp', ARGV[1], 'sldexp', ARGV[2], 'data', ARGV[4])
23+
redis.call('HSET', KEYS[1], 'absexp', ARGV[1], 'sldexp', ARGV[2], 'data', ARGV[4])
2424
if ARGV[3] ~= '-1' then
2525
redis.call('EXPIRE', KEYS[1], ARGV[3])
2626
end

0 commit comments

Comments
 (0)