persist
public Long persist(String key)
Undo a expire at turning the expire key into a normal key.
Time complexity: O(1)
Parameters:
key -
Returns:
Integer reply, specifically: 1: the key is now persist. 0: the key is not persist (only happens when key not set).
有key设置成功返回1,没key设置失败返回0
参考:
https://tool.oschina.net/uploads/apidocs/jedis-2.1.0/redis/clients/jedis/Jedis.html#persist(java.lang.String)