Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 41e567f

Browse filesBrowse files
minor #50283 [Cache] Sync RelayProxy (nicolas-grekas)
This PR was merged into the 6.3 branch. Discussion ---------- [Cache] Sync RelayProxy | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 1f5c977 [Cache] Sync RelayProxy
2 parents fb234d5 + 1f5c977 commit 41e567f
Copy full SHA for 41e567f

File tree

Expand file treeCollapse file tree

1 file changed

+35
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+35
-0
lines changed

‎src/Symfony/Component/Cache/Traits/RelayProxy.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Cache/Traits/RelayProxy.php
+35Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,11 @@ public function publish($channel, $message): \Relay\Relay|false|int
537537
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->publish(...\func_get_args());
538538
}
539539

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+
540545
public function setnx($key, $value): \Relay\Relay|bool
541546
{
542547
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
887892
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->sunionstore(...\func_get_args());
888893
}
889894

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+
890925
public function touch($key_or_array, ...$more_keys): \Relay\Relay|false|int
891926
{
892927
return ($this->lazyObjectState->realInstance ??= ($this->lazyObjectState->initializer)())->touch(...\func_get_args());

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.