Couchbase
view release on metacpan or search on metacpan
lib/Couchbase/Bucket.pm view on Meta::CPAN
will only succeed if the item does B<not> exist, C<replace> will only succeed if the
item B<already> exists, and C<upsert> will unconditionally write the new value
regardless of it existing or not.
=head4 Storage Format
By default, the document is serialized and stored as JSON. This allows proper
integration with other optional functionality of the cluster (such as views and
N1QL queries). You may also store items in other formats which may then be
transparently serialized and deserialized as needed.
To specify the storage format for a document, specify the `format` setting
in the L<Couchbase::Document> object, like so:
use Couchbase::Document;
my $doc = Couchbase::Document->new('foo', \1234, { format => COUCHBASE_FMT_STORABLE);
This version of the client uses so-called "Common Flags", allowing seamless integration
with Couchbase clients written in other languages.
( run in 0.281 second using v1.01-cache-2.11-cpan-0a6323c29d9 )