Skip to content

Add a get method with default value #3

@c0indev3l

Description

@c0indev3l

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions