Search:

Search all manuals
Search this manual
Manual
Couchbase API Reference 1.1
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
1 Couchbase Protocol Reference
Chapter Sections
Chapters

1.26. incr

Increment the value of an existing numeric key. Couchbase Server stores numbers as unsigned numbers, therefore if you try to increment an existing negative number, it will cause an integer overflow and return a non-logical numeric result. If a key does not exist, this method will initialize it with the zero or a specified value.

incr key offset

Where:

Perl (Cache::Memcached::libmemcached)

Ruby (Fauna)

PHP (Couchbase PHP SDK)

memcached text protocol

Java (spymemcached)

.NET Client Library

Python