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

Update all missing this->_lastKey update for backend cache #12072

Closed
wants to merge 5 commits into from

Conversation

hinablue
Copy link
Contributor

@hinablue hinablue commented Aug 2, 2016

Add the this->_lastKey update for all backend cache.

Refs: #12050

@sergeyklay sergeyklay self-assigned this Aug 2, 2016
@sergeyklay sergeyklay added this to the 3.0.1 milestone Aug 2, 2016
@sergeyklay
Copy link
Contributor

Could you please update CHANGELOG.md

@nsossonko
Copy link
Contributor

Why not just do let this->_lastKey = lastKey, they seem the same (would save re-concatenation, not a big deal)

@hinablue
Copy link
Contributor Author

hinablue commented Aug 2, 2016

Update the CHANGELOG.md and use $this->_lastKey = lastKey;

@@ -195,6 +195,7 @@ class Mongo extends Backend implements BackendInterface
} else {
let prefix = this->_prefix;
let lastkey = prefix . keyName;
let this->_lastKey = lastKey;
Copy link
Contributor

Choose a reason for hiding this comment

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

lastkey != lastKey

Copy link
Contributor

Choose a reason for hiding this comment

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

@sergeyklay
Copy link
Contributor

@hinablue Also could you please rebase

* @param long lifetime
* @param boolean stopBuffer
*/
public function save(keyName = null, content = null, lifetime = null, boolean stopBuffer = true) -> boolean
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please return back tabs instead of spaces?

@sergeyklay
Copy link
Contributor

Thanks. Fixed in the 3.0.x branch.

@sergeyklay sergeyklay closed this Aug 3, 2016
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.

3 participants