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

#142 - Support Redis Cluster #471

Merged
merged 11 commits into from
Jun 16, 2024

Conversation

yergo
Copy link
Contributor

@yergo yergo commented Apr 10, 2024

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Small description of change:
Added Storage\Adapter\RedisCluster for \RedisCluster to be compatible with framework.

Added RedisCluster.php adapter
src/Storage/Adapter/RedisCluster.php Outdated Show resolved Hide resolved
src/Storage/Adapter/RedisCluster.php Outdated Show resolved Hide resolved
src/Storage/Adapter/RedisCluster.php Show resolved Hide resolved
yergo added 10 commits April 11, 2024 19:11
RedisCluster Adapter to inherit from Redis Adapter
Codacy post-static analysis adjustments
RedisCluster as Cache adapter
- docker cluster configuration
- common Cache/Adapter/Redis RedisCluster tests
- improvements in class inheritance configuration separation
- old issue with consts not set in RedisCluster phpredis library worked around
- revert unnecesary formatting update from Redis.php
- added missing newline for RedisCluster.php
remove duplicated methods
remove obsolete imports
update Cache\Redis integration tests
update integration tests for Storage\Adapter to include testing RedisCluster adapter
Copy link

sonarcloud bot commented Apr 17, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
25.0% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@yergo yergo marked this pull request as ready for review April 17, 2024 23:27
@yergo yergo requested a review from niden April 18, 2024 20:57
* } $options
* @throws SupportException
*/
public function __construct(SerializerFactory $factory, array $options = [])
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

This is not really necessary. The parent will be called either way.

@niden niden merged commit 295ac0e into phalcon:v6.0.x Jun 16, 2024
11 of 16 checks passed
@niden
Copy link
Sponsor Member

niden commented Jun 16, 2024

Than kyou @yergo

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.

None yet

2 participants