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 a get method with default value #3

Closed
c0indev3l opened this issue Oct 16, 2013 · 1 comment
Closed

Add a get method with default value #3

c0indev3l opened this issue Oct 16, 2013 · 1 comment

Comments

@c0indev3l
Copy link

It will be nice to provide a get method which return a default value when nothing was stored for a given key into database like a defaultdict
http://docs.python.org/2/library/collections.html#collections.defaultdict

db.get('key', 'default_value')
@sureshdsk
Copy link

Added this feature and created a PR #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

No branches or pull requests

3 participants