Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SetOption

set 命令可选参数

Hierarchy

  • SetOption

Index

Properties

Properties

Optional ex

ex: number

将键的过期时间设置为指定秒秒数,不设置则默认不超时

Optional nx

nx: boolean

可选参数, 如果设置为 true 则表示只在键不存在时,才对键进行设置操作。

Optional xx

xx: boolean

可选参数, 如果设置为 true 则表示只在键已经存在时, 才对键进行设置操作。