代潇瑞博客

script 命令/方法/函数

Description

Execute the Redis SCRIPT command to perform various operations on the scripting subsystem.

执行Redis脚本命令来执行各种操作。


Return value

SCRIPT LOAD will return the SHA1 hash of the passed script on success, and FALSE on failure. 

SCRIPT FLUSH should always return TRUE 

SCRIPT KILL will return true if a script was able to be killed and false if not 

SCRIPT EXISTS will return an array with TRUE or FALSE for each passed script


Usage

$redis->script('load', $script);

$redis->script('flush');

$redis->script('kill');

$redis->script('exists', $script1, [$script2, $script3, ...]);

【相关命令】

触屏版 | 电脑版

Copyright © 2013 代潇瑞博客手机版

QQ: 446673330

粤ICP备13071969号-1