Constructor
Parameters: | null|array|Traversable|MemcachedOptions – |
---|---|
Throws ExceptionExceptionInterface: | |
Initialize the internal memcached resource
Return type: | MemcachedResource |
---|
Set options.
Parameters: | array|Traversable|MemcachedOptions – |
---|---|
Return type: | Memcached |
See : |
Flush the whole storage
Return type: | bool |
---|
Get available space in bytes
Return type: | int|float |
---|
Internal method to get an item.
Parameters: |
|
---|---|
Return type: | mixed Data on success, null on failure |
Throws : | ExceptionExceptionInterface |
Internal method to get multiple items.
Parameters: | array – |
---|---|
Return type: | array Associative array of keys and values |
Throws : | ExceptionExceptionInterface |
Internal method to test if an item exists.
Parameters: | string – |
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to test multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of found keys |
Throws : | ExceptionExceptionInterface |
Get metadata of multiple items
Parameters: | array – |
---|---|
Return type: | array Associative array of keys and metadata |
Throws : | ExceptionExceptionInterface |
Internal method to store an item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to store multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of not stored keys |
Throws : | ExceptionExceptionInterface |
Add an item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to replace an existing item.
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to set an item only if token matches
Parameters: |
|
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
See : | |
See : |
Internal method to remove an item.
Parameters: | string – |
---|---|
Return type: | bool |
Throws : | ExceptionExceptionInterface |
Internal method to remove multiple items.
Parameters: | array – |
---|---|
Return type: | array Array of not removed keys |
Throws : | ExceptionExceptionInterface |
Internal method to increment an item.
Parameters: |
|
---|---|
Return type: | int|bool The new value on success, false on failure |
Throws : | ExceptionExceptionInterface |
Internal method to decrement an item.
Parameters: |
|
---|---|
Return type: | int|bool The new value on success, false on failure |
Throws : | ExceptionExceptionInterface |
Internal method to get capabilities of this adapter
Return type: | Capabilities |
---|
Get expiration time by ttl
Some storage commands involve sending an expiration value (relative to an item or to an operation requested by the client) to the server. In all such cases, the actual value sent may either be Unix time (number of seconds since January 1, 1970, as an integer), or a number of seconds starting from current time. In the latter case, this number of seconds may not exceed 60*60*24*30 (number of seconds in 30 days); if the expiration value is larger than that, the server will consider it to be real Unix time value rather than an offset from current time.
Return type: | int |
---|