Click or drag to resize
RedisClientTTL Method
获取一个键的TTL值

Namespace: Adf
Assembly: Adf (in Adf.dll) Version: 4.1.5549.27750
Syntax
public int TTL(
	string key
)

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