Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Execute arbitrary command using phpredis #300

Closed
@quentin389

Description

@quentin389

I'm having trouble finding an answer to a question:
Is it possible to execute arbitrary command using phpredis without using lua eval with 'redis.call'?

I'd like to be able to run stuff such as 'client list' using PHP with phpredis, but so far I've only found the lua trick. However that only works with redis 2.6+ and... well, it's just such a lame trick.

If there is no way to do it other way, perhaps you could add something like $redis->command('client list') to some future version of phpredis?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions