ryanwhowe / key-value-store

This is a database backed key/value store setter and getter library with additional functionality
MIT License
2 stars 0 forks source link

DistinctSeries get result #11

Closed ryanwhowe closed 5 years ago

ryanwhowe commented 6 years ago

Is your feature request related to a problem? Please describe. The DistinctSeries get will return the last unique value set to the series, there is no means to return the last absolute value that was set to the series without using getSet() and looking for the latest last_update value. This seems to be a different behavior that the other classes in the collection and should be changed to give the same behavior as the other classes.

Describe the solution you'd like I would like to see this behavior changed in the DistinctSeries::get method with the addition of a DistinctSeries::getLastUnique() method to be able to retrieve the last unique value that was added to the series collection.

Addiitonal This is going to effect the current tests that are performed on the DistinctSeries class and will require updating the tests to match the new output.