Emit function.

This commit is contained in:
Greyscale 2022-06-18 04:07:38 +02:00
parent 5c6f80ed59
commit 9cd475f456
No known key found for this signature in database
GPG key ID: 74BAFF55434DA4B2

View file

@ -305,4 +305,8 @@ class Redis
$this->initialiseExtensions();
}
}
public function emit(array $message){
return $this->redis->publish(APP_NAME, json_encode($message));
}
}