Set options.
| Parameters: | array|Traversable|MemoryOptions – |
|---|---|
| Return type: | Memory |
| See : |
Get available space in bytes
| Return type: | int|float |
|---|
Flush the whole storage
| Return type: | bool |
|---|
Remove items matching given prefix
| Parameters: | string – |
|---|---|
| Return type: | bool |
Set tags to an item by given key. An empty array will remove all tags.
| Parameters: |
|
|---|---|
| Return type: | bool |
Get tags of an item by given key
| Parameters: | string – |
|---|---|
| Return type: | string[]|FALSE |
Remove items matching given tags.
If $disjunction only one of the given tags must match else all given tags must match.
| Parameters: |
|
|---|---|
| Return type: | bool |
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 |
Internal method to test multiple items.
| Parameters: | array – |
|---|---|
| Return type: | array Array of found keys |
Get metadata of an item.
| Parameters: | string – |
|---|---|
| Return type: | array|bool Metadata on success, false on failure |
| Throws : | ExceptionExceptionInterface @triggers getMetadata.pre(PreEvent) |
@triggers getMetadata.post(PostEvent) @triggers getMetadata.exception(ExceptionEvent)
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 add multiple items.
| Parameters: | array – |
|---|---|
| Return type: | array Array of not stored keys |
| Throws : | ExceptionExceptionInterface |
Internal method to replace an existing item.
| Parameters: |
|
|---|---|
| Return type: | bool |
| Throws : | ExceptionExceptionInterface |
Internal method to replace multiple existing items.
| Parameters: | array – |
|---|---|
| Return type: | array Array of not stored keys |
| Throws : | ExceptionExceptionInterface |
Internal method to reset lifetime of an item
| Parameters: | string – |
|---|---|
| Return type: | bool |
| Throws : | ExceptionExceptionInterface |
Internal method to remove an item.
| Parameters: | string – |
|---|---|
| Return type: | bool |
| 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 |