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

Common interface for the Cachify storage classes #298

Merged
merged 2 commits into from
Apr 7, 2024

Conversation

lloc
Copy link
Contributor

@lloc lloc commented Apr 6, 2024

I started to collect the least common methods with their arguments. It is now possible to guarantee a common interface by implementing Cachify_Backend in the interested classes.

I also made the overall coverage more visible and narrowed the output down to the classes (and not template-like the setup code for example):

image

Copy link
Contributor

@stklcode stklcode left a comment

Choose a reason for hiding this comment

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

Good work, thanks. I would have some minor cosmetic/pedantic suggestions, but I totally agree with the changes proposed.

inc/class-cachify-interface.php Outdated Show resolved Hide resolved
inc/class-cachify-interface.php Outdated Show resolved Hide resolved
inc/class-cachify-interface.php Outdated Show resolved Hide resolved
inc/class-cachify-memcached.php Outdated Show resolved Hide resolved
cachify.php Outdated Show resolved Hide resolved
composer.json Show resolved Hide resolved
@lloc
Copy link
Contributor Author

lloc commented Apr 7, 2024

Good work, thanks. I would have some minor cosmetic/pedantic suggestions, but I totally agree with the changes proposed.

Thanks for taking the time to review the PR!

@lloc lloc changed the title common interface for the Cachify storage classes Common interface for the Cachify storage classes Apr 7, 2024
@stklcode stklcode added this to the 2.4.0 milestone Apr 7, 2024
Copy link
Contributor

@stklcode stklcode left a comment

Choose a reason for hiding this comment

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

Squashed the changes into 2 commits (interface + coverage), LGTM

@stklcode stklcode merged commit 76e9986 into pluginkollektiv:develop Apr 7, 2024
7 checks passed
Copy link

sonarcloud bot commented Apr 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

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.

2 participants