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

Add new public callAsync() method #166

Merged
merged 2 commits into from
Dec 28, 2024
Merged

Add new public callAsync() method #166

merged 2 commits into from
Dec 28, 2024

Conversation

clue
Copy link
Owner

@clue clue commented Dec 28, 2024

This changeset adds a new public callAsync() method to the RedisClient. Some static analysis tools may not understand the magic __call() method, so you may now use the new callAsync() method as a more explicit alternative.

// old (still supported)
$redis->get('name');

// new
$redis->callAsync('GET', 'name');

On top of this, this is also a prerequisite for adding a blocking API using Fibers on PHP 8.1+ in a follow-up PR.

Builds on top of #140, #141, #129, #127 and others
Refs #118

@clue clue added this to the v3.0.0 milestone Dec 28, 2024
@clue clue merged commit 652d56e into clue:3.x Dec 28, 2024
18 checks passed
@clue clue deleted the callasync branch December 28, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant