Created
March 3, 2011 22:26
-
-
Save quard8/853752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wantsSet = new Rediska_Key_Set("user:".$uid.":m"); | |
$intersect = $wantsSet->intersect(new Rediska_Key_Set("user:".$uid.":w")); | |
$yeahCount = count($intersect); | |
if($intersect !== false && $yeahCount > 0) | |
{ | |
$rediska->publish("notify", json_encode(array("uid" => $uid, 'count' => $yeahCount))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment