获取一个键的TTL值
Namespace: AdfAssembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax public int TTL(
string key
)
Public Function TTL (
key As String
) As Integer
public:
int TTL(
String^ key
)
member TTL :
key : string -> int
Parameters
- key
- Type: SystemString
[Missing <param name="key"/> documentation for "M:Adf.RedisClient.TTL(System.String)"]
Return Value
Type:
Int32
The command returns -2 if the key does not exist.
The command returns -1 if the key exists but has no associated expire.
See Also