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

setMany() #58

Open
ArsNV opened this issue Mar 28, 2017 · 3 comments
Open

setMany() #58

ArsNV opened this issue Mar 28, 2017 · 3 comments

Comments

@ArsNV
Copy link

ArsNV commented Mar 28, 2017

Hi
What about setMany() method
For example
array['key1'] = json;
array['key2'] = json;
array['key3'] = json;
storage.setMany(array,function(result){});

@jviotti
Copy link
Member

jviotti commented Mar 28, 2017

I'd definitely accept a PR for such a function. Accepting an object is probably better than an array though:

storage.setMany({
    key1: json,
    key2: json,
    key3: json
}, function(error) {
    ...
});

@ArsNV
Copy link
Author

ArsNV commented Mar 28, 2017

Thanks

@Rob--
Copy link

Rob-- commented Jul 17, 2017

Created a PR ( #74 )

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

No branches or pull requests

3 participants