Not sure what I’m doing wrong, I’ve searched the forums and read the docs but my expiry doesn’t seem to work
$result = $bucket->insert('doc', array('docType' => 'pendingCheckout', 'expiry' => 10 ));
Not sure what I’m doing wrong, I’ve searched the forums and read the docs but my expiry doesn’t seem to work
$result = $bucket->insert('doc', array('docType' => 'pendingCheckout', 'expiry' => 10 ));
This is not correct way to pass 'expiry'
option. You can consult API reference on this here: http://docs.couchbase.com/sdk-api/couchbase-php-client-2.4.6/classes/Couchbase.Bucket.html#method_insert
$result = $bucket->insert('doc', array('docType' => 'pendingCheckout'),
array('expiry' => 10 ));