1234567891011121314151617181920212223242526 |
- <?php
- /*
- * This file is part of the Redisun package.
- *
- * (c) LI Mengxiang <limengxiang876@gmail.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
- namespace Limen\Redisun\Commands;
- class GetCommand extends Command
- {
- public function getScript()
- {
- $script = <<<LUA
- local values = {};
- for i,v in ipairs(KEYS) do
- values[#values+1] = redis.call('get',v);
- end
- return {KEYS,values};
- LUA;
- return $script;
- }
- }
|