Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Add Predis support#55

Open
fesor wants to merge 3 commits into
Jimdo:masterfrom
fesor:predis_support
Open

Add Predis support#55
fesor wants to merge 3 commits into
Jimdo:masterfrom
fesor:predis_support

Conversation

@fesor

@fesor fesor commented Sep 18, 2017

Copy link
Copy Markdown

For #52

@fesor

fesor commented Nov 5, 2017

Copy link
Copy Markdown
Author

@schnipseljagd @bracki guys, what do you think on this?

@bracki

bracki commented Nov 6, 2017

Copy link
Copy Markdown
Contributor

I'd prefer to refactor the class so that it takes either a Redis or a Predis $connection, rather than duplicating everything. @fesor what's your take on that?

@fesor

fesor commented Nov 6, 2017

Copy link
Copy Markdown
Author

Will try to do that.

 - Encapsulate differences between predis and redis behind
single abstraction.
 - Reduce duplication in tests
@fesor

fesor commented Feb 26, 2018

Copy link
Copy Markdown
Author

@bracki so, I need this again so I finally managed to work on this PR.

I added additional abstraction which hides difference between redis and predis without sacrifice lazy connection in case of redis.

I really not sure it is ok or not.

@bracki

bracki commented Mar 19, 2018

Copy link
Copy Markdown
Contributor

@fesor Would you mind rebasing? Did you also take into account #27?

* @param $groupingKey
*/
public function delete($job, $groupingKey = null)
public function delete(CollectorRegistry $collectorRegistry, $job, $groupingKey = null)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

$collectorRegistry is left out on purpose here. It's not being used anyways. Modeled after the Python implementation which also leaves out the registry when doing a delete.

@fesor

fesor commented Mar 20, 2018

Copy link
Copy Markdown
Author

@bracki as for #27, yes and no. You can pass redis instance but adapter still will handle connection and will require connection options.

I need to check is this covers #27 fully.

Willl rebase this PR asap.

@peterjumpnl

Copy link
Copy Markdown

What is status of this pr?

@MyIgel

MyIgel commented Jun 26, 2019

Copy link
Copy Markdown

Is there anything I could help with this PR to get merged? This would be a really nice feature :(

@NoelDavies

Copy link
Copy Markdown

This project is dead, but I'm maintaining it under my employer - https://github.com/endclothing/prometheus_client_php. Feel free to submit the PR there.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants