1 | <?php |
||
37 | class RedisSentinelManager implements Factory |
||
38 | { |
||
39 | /** |
||
40 | * The RedisSentinelManager instance for the current version of Laravel |
||
41 | * |
||
42 | * @var VersionedRedisSentinelManager |
||
43 | */ |
||
44 | private $versionedManager; |
||
45 | |||
46 | /** |
||
47 | * Wrap the provided RedisSentinelManager instance that manages Sentinel |
||
48 | * connections for the current version of Laravel. |
||
49 | * |
||
50 | * @param VersionedRedisSentinelManager $versionedManager Manages Redis |
||
51 | * Sentinel connections for the current version of Laravel |
||
52 | */ |
||
53 | public function __construct(VersionedRedisSentinelManager $versionedManager) |
||
57 | |||
58 | /** |
||
59 | * Get the current RedisSentinelManager instance that manages Sentinel |
||
60 | * connections for the current version of Laravel. |
||
61 | * |
||
62 | * @return VersionedRedisSentinelManager The versioned implementation of |
||
63 | * RedisSentinelManager |
||
64 | */ |
||
65 | public function getVersionedManager() |
||
69 | |||
70 | /** |
||
71 | * Get a Redis Sentinel connection by name. |
||
72 | * |
||
73 | * @param string|null $name The name of the connection as defined in the |
||
74 | * application's configuration |
||
75 | * |
||
76 | * @return \Illuminate\Redis\Connections\Connection The requested Redis |
||
77 | * Sentinel connection |
||
78 | */ |
||
79 | public function connection($name = null) |
||
83 | |||
84 | /** |
||
85 | * Pass method calls to the RedisSentinelManager instance for the current |
||
86 | * version of Laravel. |
||
87 | * |
||
88 | * @param string $methodName The name of the called method |
||
89 | * @param array $arguments The arguments passed to the called method |
||
90 | * |
||
91 | * @return mixed The return value from the underlying method |
||
92 | */ |
||
93 | public function __call($methodName, array $arguments) |
||
98 | } |
||
99 |