Insert or update data in aerospike
<p>I want to insert some record in Aerospike, if the record already exists then I only want to update it.
Currently I am using this query(to insert) -</p>

<blockquote>
  <p>client.put(wPolicy, key,bin1,bin2)</p>
</blockquote>

<p>Can someone please inform me how to update or insert depending on whether the record is duplicate?</p>