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

Namespace Support #149

Merged
merged 11 commits into from
May 8, 2014
Merged

Namespace Support #149

merged 11 commits into from
May 8, 2014

Conversation

tedivm
Copy link
Member

@tedivm tedivm commented May 8, 2014

This pull request introduces Namespace functionality. It does so via two functions- setNamespace and getNamespace- in the Pool class.

tedivm added 7 commits May 7, 2014 18:00
The constructor is no longer there- instead there is a setDriver and
setKey function.

The Item class no longer accepts a string for a key, it must be
provided with an array. This was done for efficiency (since the Pool
class already converts it to an array) and to make namespacing easier.

This does break previous API compatibility, however it should have
minimal affects as these functions are all used internally (typically
by the Pool class when generating the Item).
This also updates the Pool class to use the new API for Items.
This reflect the new API changes that were made.
If a namespace is set flush() will only clear that specific namespace.
Otherwise the entire pool gets cleared.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.58%) when pulling 3e4b2c5 on namespaces into 2fc3b8e on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.77%) when pulling 7fbad72 on namespaces into 2fc3b8e on master.

The xcache extension does not run on the command line, making code
coverage impossible.
tedivm added a commit that referenced this pull request May 8, 2014
@tedivm tedivm merged commit 25511b8 into master May 8, 2014
@tedivm tedivm deleted the namespaces branch May 8, 2014 05:23
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.

2 participants