当前位置:首页 >时尚 >腾讯面试之言浅意深 Redis 正文

腾讯面试之言浅意深 Redis

来源:益强资讯优选   作者:应用开发   时间:2025-11-05 05:36:46
腾讯面试之言浅意深 Redis
复制if (redis.call(exists,腾讯 KEYS[1]) == 0) then   redis.call(hset, KEYS[1], ARGV[2], 1);     redis.call(pexpire, KEYS[1], ARGV[1]);     return nil;   end;  if (redis.call(hexists, KEYS[1], ARGV[2]) == 1) then   redis.call(hincrby, KEYS[1], ARGV[2], 1);    redis.call(pexpire, KEYS[1], ARGV[1]);    return nil;  end;  return redis.call(pttl, KEYS[1]);  1.2.3.4.5.6.7.8.9.10.11.12.13.

标签:

责任编辑:域名