8000 [Cache] Clean RedisAdapter pipelining + FilesystemAdapter by nicolas-grekas · Pull Request #18714 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Cache] Clean RedisAdapter pipelining + FilesystemAdapter #18714

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

Merged
merged 1 commit into from
May 12, 2016

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 3.1
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

This PR refactorize Redis pipelining so that the case for handling RedisArray is abstracted, thus less bug prone.

@nicolas-grekas nicolas-grekas changed the title [Cache] Clean RedisAdapter pipelining implementation [Cache] Clean RedisAdapter pipelining + FilesystemAdapter May 5, 2016
@@ -148,10 +145,15 @@ protected function doSave(array $values, $lifetime)
return $ok;
}

private function getFile($id)
private function getFile($id, $mkdir)
Copy link
Member

Choose a reason for hiding this comment

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

As false is used everywhere except in one call, what do you think of making it the default value?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@dunglas
Copy link
Member
dunglas commented May 11, 2016

👍

@@ -229,55 +229,65 @@ protected function doSave(array $values, $lifetime)
$failed[] = $id;
}
}

Copy link
Member

Choose a reason for hiding this comment

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

I would keep the empty lines for readability

Copy link
Member Author

Choose a reason for hiding this comment

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

added back

@stof
Copy link
Member
stof commented May 11, 2016

shouldn't the update of hirak/prestissimo be done in a separate PR applied in 2.3 instead ?

@nicolas-grekas nicolas-grekas force-pushed the redis-pipe branch 2 times, most recently from 33c5538 to 44e53cd Compare May 11, 2016 21:38
@nicolas-grekas
Copy link
Member Author

@stof hirak/prestissimo removed, I just needed it to check if finally worked on hhvm also (answer is yes here)

@nicolas-grekas
Copy link
Member Author

ping @symfony/deciders votes pending for 3.1-beta which should/may be released tomorrow

@fabpot
Copy link
Member
fabpot commented May 12, 2016

Thank you @nicolas-grekas.

@fabpot fabpot merged commit acf0075 into symfony:master May 12, 2016
fabpot added a commit that referenced this pull request May 12, 2016
…r (nicolas-grekas)

This PR was merged into the 3.1-dev branch.

Discussion
----------

[Cache] Clean RedisAdapter pipelining + FilesystemAdapter

| Q             | A
| ------------- | ---
| Branch?       | 3.1
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This PR refactorize Redis pipelining so that the case for handling RedisArray is abstracted, thus less bug prone.

Commits
-------

acf0075 [Cache] Clean RedisAdapter pipelining + FilesystemAdapter
@nicolas-grekas nicolas-grekas deleted the redis-pipe branch May 12, 2016 20:52
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.

6 participants
0