Liu_Ld
1
In file “as_record.h”, it says “Note that the TTL value will be employed ONLY on write/update calls.”
But I need to reset record’ ttl when read it too. I have two options now :
-
Do a read-operation and then do another update-operation
-
Build a UDF function to read and reset ttl
Is there a simpler way to match my application?
wchu
2
Another option is to use the aerospike_key_operate() function, building up two operators, “touch” and “read”.
See
and example: