How to use the KV_INCR_KEY?
I found a useful feature in gwan api, but without any sample.
I want to add items to the KV store with this as primary key.
Also, how to get the value of this key?
How to use the KV_INCR_KEY ? I found a useful feature in gwan api,
Share
The
KV_INCR_KEYvalue is a flag intended to be passed tok_add().You get the newly inserted key’s value by checking the return value of
k_add(). The documentation states:This was derived from an idea discussed on the G-WAN forum. And, like for some other flags (timestamp or persistence, for example), it has not not been implemented yet (
KV_NO_UPDATEis functional).Since what follows the next version (focussed on new scripted languages) is a kind of zero-configuration
mapReduce, the KV store will get more attention soon.