Skip to content

Comments

#225 refactor: return default object if defined and cache is empty#296

Open
thepylot wants to merge 1 commit intonode-cache:masterfrom
thepylot:default-value-for-get
Open

#225 refactor: return default object if defined and cache is empty#296
thepylot wants to merge 1 commit intonode-cache:masterfrom
thepylot:default-value-for-get

Conversation

@thepylot
Copy link

Motivation:
I used the library and needed the default value to prevent adding extra conditions to check undefined.

This PR aims to allow default object for the empty cache.
Related tests added to cover changes.

Related Issue: #225

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.

1 participant