@@ -537,6 +537,11 @@ public function publish($channel, $message): \Relay\Relay|false|int
537
537
return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->publish (...\func_get_args ());
538
538
}
539
539
540
+ public function spublish ($ channel , $ message ): \Relay \Relay |false |int
541
+ {
542
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->spublish (...\func_get_args ());
543
+ }
544
+
540
545
public function setnx ($ key , $ value ): \Relay \Relay |bool
541
546
{
542
547
return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->setnx (...\func_get_args ());
@@ -887,6 +892,36 @@ public function sunionstore($key, ...$other_keys): \Relay\Relay|false|int
887
892
return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->sunionstore (...\func_get_args ());
888
893
}
889
894
895
+ public function subscribe ($ channels , $ callback ): bool
896
+ {
897
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->subscribe (...\func_get_args ());
898
+ }
899
+
900
+ public function unsubscribe ($ channels = []): bool
901
+ {
902
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->unsubscribe (...\func_get_args ());
903
+ }
904
+
905
+ public function psubscribe ($ patterns , $ callback ): bool
906
+ {
907
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->psubscribe (...\func_get_args ());
908
+ }
909
+
910
+ public function punsubscribe ($ patterns = []): bool
911
+ {
912
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->punsubscribe (...\func_get_args ());
913
+ }
914
+
915
+ public function ssubscribe ($ channels , $ callback ): bool
916
+ {
917
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->ssubscribe (...\func_get_args ());
918
+ }
919
+
920
+ public function sunsubscribe ($ channels = []): bool
921
+ {
922
+ return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->sunsubscribe (...\func_get_args ());
923
+ }
924
+
890
925
public function touch ($ key_or_array , ...$ more_keys ): \Relay \Relay |false |int
891
926
{
892
927
return ($ this ->lazyObjectState ->realInstance ??= ($ this ->lazyObjectState ->initializer )())->touch (...\func_get_args ());
0 commit comments