using keys can query keys can see below: redis> set popo "pepe" ok redis> set coco "kansas" ok redis> set cool "rock" ok redis> set cool2 "punk" ok redis> keys *co* 1) "cool2" 2) "coco" 3) "cool" redis> keys *ol* 1) "cool2" 2) "cool" is there way values instead of keys? like: mget (keys *ol*) notice: others have mentioned, along myself in comments on original question, in production environments keys should avoided . if you're running queries on own box , hacking together, go it. otherwise, question if redis makes sense particular application, , if need - if so, impose limits , avoid large blocking calls, such keys . (for this, see 2015 edit , below.) my laptop isn't readily available right test this, can tell there isn't native commands allow use pattern in way. if want within redis, might have use eval chain commands: eval "return red...
Comments
Post a Comment