Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: PHP 1.1
Community Wiki and Resources
Wiki: PHP Client Library
PHP Client Library
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
SDK Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
6 Retrieve Operations
Chapter Sections
Chapters

6.2. Asynchronous Get Operations

API Call$object->getDelayed($keyn [, $with_cas ] [, $callback ])
Asynchronousyes
Description Get one or more key values
Returnsboolean; supported values:
 COUCHBASE_KEY_ENOENTRequested document ID does not exist 
 COUCHBASE_SUCCESSOperation succeeded 
Arguments 
array $keyn One or more keys used to reference a value
boolean $with_cas Whether to return the CAS value for a document
mixed $callback Callback function or method to be called
API Call$object->fetch($key [, $keyn ])
Asynchronousyes
Description Fetch the next delayed result set document
Returnsarray ( An array of the next document retrieved, or NULL if no more documents )
Arguments 
string $key Document ID used to identify the value
array $keyn One or more keys used to reference a value
API Call$object->fetchAll($key [, $keyn ])
Asynchronousyes
Description Fetch all the delayed result set documents
Returnsarray ( An array of all the remaining documents retrieved, or NULL if no more documents )
Arguments 
string $key Document ID used to identify the value
array $keyn One or more keys used to reference a value