Redis store key without a value

后端 未结 4 1888
时光取名叫无心
时光取名叫无心 2021-02-06 22:31

When using the Redis expire commands like SETEX and TTL, there are scenarios in which there is no need for the key to hold a v

4条回答
  •  醉梦人生
    2021-02-06 22:41

    I would store one byte of data that could also be broadly interpreted as "truthy", such as the ASCII character 1.

提交回复
热议问题