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

Skip to content

OPT_PREFIX not taken into account for zInter #252

@shq

Description

@shq

Hello,

I encountered an issue but I'm not sure if it was intended this way.

In my project, I have a prefix defined using Redis::OPT_PREFIX (ex.: $redis->setOption(Redis::OPT_PREFIX, 'yay:'); ).
If I do $redis->zInter('newkey', array('sortedset1', 'sortedset2')), it fails to find the two sorted sets although yay:sortedset1 and yay:sortedset2 both exist (calling $redis->zInter('newkey', array('yay:sortedset1', 'yay:sortedset2')) works).
I then created 'sortedset1' and 'sortedset2' without the prefix through redis-cli and the above line of code worked.
The result got stored at 'yay:newkey'.

Is it the expected behavior? Do I have to explicitly add the prefix in that specific case, whereas calling all other methods do not require me to do it?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions