This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
marc-mabe
commented
Oct 15, 2012
- removed dependency to Zend\Validator
- allow to share one memcached resource over different adapter instances
- instantiate the memcached resource on first use
- init list of servers and lib options only on instantiating the memcached resource
- allow different format to configure servers:
- array list: array(array([, [, ]][, ...]))
- array assoc: array(array('host' => [, 'port' => [, 'weight' => ]][, ...]))
- string list: array(':?weight='[, ...])
- string separated: ':?weight=[, ...]'
- removed dependency to Zend\Validator - allow to share one memcached resource over differend adapter instances - instantiate the memcached resource on first use - init list of servers and lib options only on instantiating the memcached resource
This was referenced Oct 15, 2012
ghost
assigned weierophinney
Oct 16, 2012
*/ | ||
public function addServer($host, $port = 11211) | ||
public function setMemcachedResource(MemcachedResource $memcachedResource = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not good -- it's an API change. I'm okay with adding a method, but not with removing one.
weierophinney
added a commit
that referenced
this pull request
Oct 16, 2012
- Re-instated MemcachedOptions::addServer(), and added optional $weight argument (defaults to 0, the default used by Memcached) - Re-instated default server - Re-instated ability to change namespaces - Re-instated removed tests - Fixed failing tests, and corrected assumptions in several tests (as internal implementation details had changed)
All suggestions were incorporated during merge. I re-added the listener for "option", but have it now only caring about "namespace"; this fixed two failing unit tests. Additionally, I'd discovered that the default server had been removed, so I reinstated that as well, this time within MemcachedOptions. |
Thank you for review and corrections.
Any thoughts ? |
|
weierophinney
added a commit
to zendframework/zend-cache
that referenced
this pull request
May 15, 2015
- Re-instated MemcachedOptions::addServer(), and added optional $weight argument (defaults to 0, the default used by Memcached) - Re-instated default server - Re-instated ability to change namespaces - Re-instated removed tests - Fixed failing tests, and corrected assumptions in several tests (as internal implementation details had changed)
weierophinney
added a commit
to zendframework/zend-cache
that referenced
this pull request
May 15, 2015
weierophinney
added a commit
to zendframework/zend-cache
that referenced
this pull request
May 15, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.