Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.x] Adds exists() method to ChannelManager #149

Merged
merged 5 commits into from
Apr 15, 2024

Conversation

AmirRezaM75
Copy link
Contributor

@AmirRezaM75 AmirRezaM75 commented Apr 13, 2024

I came across a situation in my project that needs to check if a channel exists or not.
We can utilize find() method and check if the result is null or not; But since Reverb aims for performance, better to only check if key exists or not instead of loading object. It also gives freedom if someone wants to bind it's own DbChannelManager driver instead of array.

Copy link
Collaborator

@joedixon joedixon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice addition, thanks

@joedixon joedixon changed the title Add exists() method to ChannelManager [1.x] Adds exists() method to ChannelManager Apr 15, 2024
@taylorotwell taylorotwell merged commit 371aefd into laravel:main Apr 15, 2024
9 checks passed
@AmirRezaM75 AmirRezaM75 deleted the channel_manager branch April 16, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants