back

by rhgraysonii·11y ago·view on hn ↗
I just saw this now, sorry for being 5 days late if you even end up noticing it.

The typing is governed by YAML standards. This is why symbols are left out. Since it uses `YAML.dump` and `YAML.load` with the set/get, it will automatically assume the string '1' is an integer, '1.0' a float, and so on.

> is it possible to enumerate the versions of key-values that have been saved?

Yes, using the `get_version` method, you could do something like:

    all_items = $ITEMS[key].map { |hash| db.get(hash) }
I should add this as a normal function to the API. Its now on my todo list.