문제

In my Redis Client when I write : Keys *. I've all keys of my database. But when I try to write the same thing in Ruby, like that:

@list_keys = REDIS.keys *

It doesn't take '*'.

Do you have any idea how I could replace the '*' ?

도움이 되었습니까?

해결책

If REDIS is an instance of your redis client, you can do

REDIS.keys('*')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top