Trying to use the counter() method I found that documents weren't expiring as expected. Tests using upsert instead do show documents properly expiring.
Example:
my $counter = Couchbase::Document->new($_[0], 1, { expiry => 10 });
$rl->counter($counter, { initial => 1, delta => 1 });
Results in a document that never expires. Should expire in 10 seconds.
Trying to use the counter() method I found that documents weren't expiring as expected. Tests using upsert instead do show documents properly expiring.
Example:
my $counter = Couchbase::Document->new($_[0], 1, { expiry => 10 });
$rl->counter($counter, { initial => 1, delta => 1 });
Results in a document that never expires. Should expire in 10 seconds.