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

Value Storage & Options Object #13

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

dangerdespain
Copy link
Contributor

Hey @tonyskn - this pull request adds the ability for the TimeSeries object to record values as well. It is set up to save and retrieve a value recorded during a time slice.

I've been using my own branch for a while and it's been useful to track the current value and history of a key. This is useful for recording things such as historical temperature or # "likes over time" while utilizing a similar get function as the hit counter.

I've also replaced the count param with an opts object (see updated README for more) but set things up so that an integer is still accepted. No existing functions were modified in a way that prevents backwards compatibility.This will add a bit of flexibility in building more features in the future.

Sorry for the messy commits - I'm just running and gunning over here!

Edit - I've also improved the testing coverage and applied it to the new functions as well.

@dangerdespain dangerdespain changed the title Values&opts Value Storage & Options Object Nov 24, 2015
@dangerdespain
Copy link
Contributor Author

Hi @tonyskn, was wondering if you had a chance to review this? I built this feature for the last company that I was with, and now will be using it for another (: Happy to use my fork for now but would love to see this rolled into the npm package!

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