产品概述
产品优势
应用场景
产品架构
地域介绍
getttl from [table] where key1 = 1 and key2 = "abc";
参数 | 是否必填 | 限制条件 | 说明 |
table | 是 | 无 | 表名 |
where 条件中的 key | 是 | 对于 TDR 表,必须填入所有 key 值 | 声明 key 的值,多个 key 值用 and 连接 |
情况描述 | 返回信息 |
keys 不存在或者已过期 | Record does not exist or has expired. |
keys 存在并且没有设置过期时间(永久有效) | Record exists and no expiration time is set (permanent). |
获取失败 | Failed to get time to live. The error code is [error code] and the error message is [Error message]. |
获取成功 | The time to live is [TTL] milliseconds. |
tcaplus> getttl from mails where key1 = 1 and key2 = "abc";The time to live is 2000 milliseconds.
文档反馈