Mark Nunberg > Couchbase-Client-1.0.1 > Couchbase::Client::Async::Request

Download:
Couchbase-Client-1.0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Couchbase-Client-1.0.3

NAME ^

Couchbase::Client::Async::Request - Request container for asynchronous couchbase client

DESCRIPTION ^

This documents the fields of the Request object. For a more detailed explanation of how to use this structure, look at Couchbase::Client::Async

FIELDS

The request object is a simple array reference. You can either access the fields directly by using the constants provided via Couchbase::Client::IDXConst or use the named accessors.

REQIDX_KEY, key

This is the key for the operation. Nearly all commands require this.

REQIDX_VALUE, value

Required for non-arithmetic mutate commands, e.g. set, add, replace etc.

REQIDX_CAS, cas

Optional for mutator commands.

REQIDX_EXP, expiry

The expiration value (in seconds from now) for the value. This is required for touch commands, and optional for other mutators.

REQIDX_ARITH_DELTA

Required for arithmetic operations, this is a signed integer which will be added to the existing value.

REQIDX_ARITH_INITIAL

Optional for arithmetic operations, this is an unsigned value which will be used as the default value, if there is no existing value

syntax highlighting: