I’m new to aerospike UDF need some help on basic UDF function, when creating a new record using record UDF is it possible to give a TTL value for it? also how to add the key value when creating a new record?
This is the sample UDF that I’m using to create record:
function create_record(rec, bin1, bin2, bin3) if( not aerospike:exists( rec ) ) then aerospike:create(rec); end rec['bin1'] = bin1; rec["bin2"] = bin2; rec["bin3"] = bin3; return aerospike:update(rec); end
All the bin values are getting updated properly, but the “key” isn’t getting updated. Is there a way to update the key when creating or updating the record using UDF, also is it possible to give a TTL value when performing a create/update operation.
Thanks, Roy Justin