I wanted to get a record from the aerospike. So, I was using the Client.Get method.
However, whenever I do a Get I also want to refresh the TTL of the record. So, usually we use a WritePolicy which allows us to set a ttl. But then the Get method accepts only a BasePolicy
Is the following way correct or is there a better way of doing this?
client.Get(nil, key, bin)
client.Touch(myWritePolicy, key)