Value Storage & Options Object
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.
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!