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

Add multi-directory support #77

Closed
wants to merge 6 commits into from
Closed

Add multi-directory support #77

wants to merge 6 commits into from

Conversation

Yoann-Pearson
Copy link
Contributor

@Yoann-Pearson Yoann-Pearson commented Jul 27, 2017

This is a follow-up branch from a fork of PR #51 branch.

(not sure if this was the correct way to continue someone else's work...) (and also this is my first PR on github, so if I've done something unexpected or wrong, please point me in the correct direction and I'll try to fix things)

kfardanesh and others added 4 commits March 2, 2017 20:44
An initial start to add directory support, looking to get help/advice from community to make code more robust.

Added capability to prefix key with directory for get, set, has, remove (i.e. "testfolder/foo" will get, set, has, or remove foo under the testfolder directory).
Also extended functions getAll, keys, clear* to allow optional directory parameter (i.e. "testfolder" will getAll, keys or clear* under the testfolder directory.

getMany is tricky and needs some work.

*Currently clear removes the directory passed to function.
**All current test cases pass with exception of utils test function since directory is different
@jviotti
Copy link
Member

jviotti commented Jul 30, 2017

Hi @stromboul ,

Thanks for this! The PR has conflicts, and its bringing in unrelated changed, which can be solved by rebasing master into the branch.

You can take the old PR, do git rebase master, fix any potential conflicts, and push that instead, or you can manually redo the changes from the old PR in the new master.

Let me know if I can help with anything!

ypearson-ssdc and others added 2 commits July 31, 2017 11:41
… directory parameter

- Reworked a bit how those 2 functions work so they correctly get data from a different folder than the 'current'.
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.

4 participants