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

Use Alien::hiredis? #11

Open
Grinnz opened this issue Mar 31, 2020 · 2 comments
Open

Use Alien::hiredis? #11

Grinnz opened this issue Mar 31, 2020 · 2 comments

Comments

@Grinnz
Copy link

Grinnz commented Mar 31, 2020

I have a distribution called Alien::hiredis which could be used by this module. See Alien for an overview of the Alien ecosystem, but the basic advantages are that the task of building and updating the hiredis library is outsourced to that module, and it can even allow you to build against a system version of hiredis if it is appropriate.

All you would need to do is use it like described here (I can provide a PR if you wish). Right now it requires hiredis 0.11.0 or newer, with an exception to disallow a system version of 0.13.0 which is a broken version. In other cases it will install a custom version of the library for Perl to use. This is configured by the alienfile.

You would not be able to affect what criteria it uses to determine whether to use the system version or install a new one, but it could be adjusted if needed, and you can conditionally fail to install based on the alien library version.

Just presenting this option in case you want to let something else worry about installing or updating the library, and allow usage of system hiredis. Thanks for your consideration.

@neophenix
Copy link
Owner

Hey thanks for the idea. I think doing that would make this module largely pointless then as its already a basic wrapper over hiredis, I don't think adding another layer there would make a lot of sense for what my module tries to accomplish.

The building, etc of hiredis was always pretty simple, right now its just the fact I no longer use Perl or Redis day to day so its finding time and motivation to do any updates.

@Grinnz
Copy link
Author

Grinnz commented Apr 1, 2020

I don't think it would make this module pointless at all, since the Alien does not provide any Perl interface to the library, but instead an interface for XS (like this module) or FFI to use it. But no pressure to use it unless you think it would be beneficial.

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

No branches or pull requests

2 participants