Amir Jafarian
a1683fca59
Auto-update by eslint --fix
2016-10-19 17:04:05 -04:00
Miroslav Bajtoš
70a1552df8
test/kvao: add connectorCapabilities options
...
- canExpire
- canQueryTtl
- ttlPrecision
- canIterateKeys
- canIterateLargeKeySets
These options allow connectors to disable shared tests for features
that are not supported/implemented.
2016-10-19 12:33:21 +02:00
Miroslav Bajtoš
ab47ecfbab
kvao: implement key filter
2016-08-18 10:30:55 +02:00
Miroslav Bajtoš
24a9a96a26
kvao: add iterateKeys() and keys()
...
Add a core implementation of KVAO.iterateKeys() which returns an
AsyncIterator, inspired by
- https://github.com/tc39/proposal-async-iteration
- https://www.npmjs.com/package/async-iterators
This way we can safely iterate even large sets of data.
Also add KVAO.keys(), a sugar API converting the result of iterateKeys()
into a single array.
2016-08-18 10:30:53 +02:00