Emit function.
This commit is contained in:
parent
5c6f80ed59
commit
9cd475f456
1 changed files with 4 additions and 0 deletions
|
|
@ -305,4 +305,8 @@ class Redis
|
||||||
$this->initialiseExtensions();
|
$this->initialiseExtensions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function emit(array $message){
|
||||||
|
return $this->redis->publish(APP_NAME, json_encode($message));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue