yrmcds-api.php

A full-featured memcached / yrmcds client extension.

This extension wraps libyrmcds, a memcached/yrmcds client library.

Classes

Client Memcached client class.
Error Exception for \yrmcds\Client.
Response Response from memcached / yrmcds server.

Constants

STATUS_OK

STATUS_OK

Server response status indicating the command was successfully executed.

STATUS_NOTFOUND

STATUS_NOTFOUND

Server response status indicating the object is not found.

STATUS_EXISTS

STATUS_EXISTS

Server response status indicating compare-and-swap failure.

STATUS_TOOLARGEVALUE

STATUS_TOOLARGEVALUE

Server response status indicating too large values.

STATUS_INVALID

STATUS_INVALID

Server response status indicating the request was invalid.

STATUS_NOTSTORED

STATUS_NOTSTORED

Server response status indicating the object is not created nor modified.

STATUS_NONNUMERIC

STATUS_NONNUMERIC

Server response status indicating the object is not numeric.

STATUS_LOCKED

STATUS_LOCKED

Server response status indicating the object is locked.

STATUS_NOTLOCKED

STATUS_NOTLOCKED

Server response status indicating the object is _not_ locked.

STATUS_UNKNOWNCOMMAND

STATUS_UNKNOWNCOMMAND

Server response status indicating the command is not supported.

STATUS_OUTOFMEMORY

STATUS_OUTOFMEMORY

Server response status indicating not enough memory.

CMD_GET

CMD_GET

Binary command 'Get'.

CMD_SET

CMD_SET

Binary command 'Set'.

CMD_ADD

CMD_ADD

Binary command 'Add'.

CMD_REPLACE

CMD_REPLACE

Binary command 'Replace'.

CMD_DELETE

CMD_DELETE

Binary command 'Delete'.

CMD_INCREMENT

CMD_INCREMENT

Binary command 'Increment'.

CMD_DECREMENT

CMD_DECREMENT

Binary command 'Decrement'.

CMD_QUIT

CMD_QUIT

Binary command 'Quit'.

CMD_FLUSH

CMD_FLUSH

Binary command 'Flush'.

CMD_GETQ

CMD_GETQ

Binary command 'GetQ'.

CMD_NOOP

CMD_NOOP

Binary command 'Noop'.

CMD_VERSION

CMD_VERSION

Binary command 'Version'.

CMD_GETK

CMD_GETK

Binary command 'GetK'.

CMD_GETKQ

CMD_GETKQ

Binary command 'GetKQ'.

CMD_APPEND

CMD_APPEND

Binary command 'Append'.

CMD_PREPEND

CMD_PREPEND

Binary command 'Prepend'.

CMD_STAT

CMD_STAT

Binary command 'Stat'.

CMD_SETQ

CMD_SETQ

Binary command 'SetQ'.

CMD_ADDQ

CMD_ADDQ

Binary command 'AddQ'.

CMD_REPLACEQ

CMD_REPLACEQ

Binary command 'ReplaceQ'.

CMD_DELETEQ

CMD_DELETEQ

Binary command 'DeleteQ'.

CMD_INCREMENTQ

CMD_INCREMENTQ

Binary command 'IncrementQ'.

CMD_DECREMENTQ

CMD_DECREMENTQ

Binary command 'DecrementQ'.

CMD_QUITQ

CMD_QUITQ

Binary command 'QuitQ'.

CMD_FLUSHQ

CMD_FLUSHQ

Binary command 'FlushQ'.

CMD_APPENDQ

CMD_APPENDQ

Binary command 'AppendQ'.

CMD_PREPENDQ

CMD_PREPENDQ

Binary command 'PrependQ'.

CMD_TOUCH

CMD_TOUCH

Binary command 'Touch'.

CMD_GAT

CMD_GAT

Binary command 'GaT' (get and touch).

CMD_GATQ

CMD_GATQ

Binary command 'GaTQ' (get and touch quietly).

CMD_GATK

CMD_GATK

Binary command 'GaTK' (get and touch with key).

CMD_GATKQ

CMD_GATKQ

Binary command 'GaTKQ' (get and touch with key quietly).

CMD_LOCK

CMD_LOCK

Binary command 'Lock'.

CMD_LOCKQ

CMD_LOCKQ

Binary command 'LockQ'.

CMD_UNLOCK

CMD_UNLOCK

Binary command 'Unlock'.

CMD_UNLOCKQ

CMD_UNLOCKQ

Binary command 'UnlockQ'.

CMD_UNLOCKALL

CMD_UNLOCKALL

Binary command 'UnlockAll'.

CMD_UNLOCKALLQ

CMD_UNLOCKALLQ

Binary command 'UnlockAllQ'.

CMD_LAG

CMD_LAG

Binary command 'LaG' (lock and get).

CMD_LAGQ

CMD_LAGQ

Binary command 'LaGQ' (lock and get quietly).

CMD_LAGK

CMD_LAGK

Binary command 'LaGK' (lock and get with key).

CMD_LAGKQ

CMD_LAGKQ

Binary command 'LaGKQ' (lock and get with key quietly).

CMD_RAU

CMD_RAU

Binary command 'RaU' (replace and unlock).

CMD_RAUQ

CMD_RAUQ

Binary command 'RaUQ' (replace and unlock quietly).

CMD_KEYS

CMD_KEYS

Binary command 'Keys'.