Php+Redis 实现Redis提供的lua脚本功能,redislua
程序员文章站
2024-01-15 15:51:22
...
Php+Redis 实现Redis提供的lua脚本功能,redislua
php require_once "predis-0.8/autoload.php"; $config['schema'] = 'tcp'; $config['host']= "192.168.1.7"; $config['port'] = 6379; $redis = new Predis\Client($config); class wode extends Predis\Command\ScriptedCommand { public function getKyesCount(){ return false; } public function getScript(){ return LUA local result