FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

#225 refactor: return default object if defined and cache is empty by thepylot · Pull Request #296 · node-cache/node-cache · GitHub

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

Open
thepylot wants to merge 1 commit into
node-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 into
node-cache:masterfrom
thepylot:default-value-for-get

Conversation

Copy link
Copy Markdown

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

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL