代潇瑞博客

psetex 命令/方法/函数

Description

Set the string value in argument as value of the key, with a time to live(milliseconds).

设置一个有生命周期的KEY-VALUE,psetex()使用的周期单位为毫秒。


Return value

Bool TRUE if the command is successful.


Examples

$redis->psetex('key', 100, 'value'); // sets key → value, with 0.1 sec TTL.

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1