1
有沒有什麼方法可以用Jedis pub/sub組播多播密鑰的值?Jedis Pub/Sub Key of Key
我目前正在運行:
jedis.psubscribe(new MyListener(), "__key*__:*");
而且我得到的消息,例如:
onPMessage pattern __key*__:* [email protected]__:testTag0 set
onPMessage pattern __key*__:* [email protected]__:set testTag0
onPMessage pattern __key*__:* [email protected]__:testTag0 del
onPMessage pattern __key*__:* [email protected]__:del testTag0
我也想拿到過Jedis的pub/sub消息與鍵的值那是設定的。例如,像:
onPMessage pattern __key*__:* [email protected]__:set testTag0 tagValue