Set options.
Parameters: | array|Traversable|SessionOptions – |
---|---|
Return type: | Memory |
See : |
Get the session container
Return type: | SessionContainer |
---|
Flush the whole session container
Return type: | boolean |
---|
Remove items matching given prefix
Parameters: | string – |
---|---|
Return type: | boolean |
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: | boolean |
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|boolean 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: | boolean |
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: | boolean |
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: | boolean |
Throws : | ExceptionExceptionInterface |
Internal method to replace multiple existing items.
Parameters: | array – |
---|---|
Return type: | array Array of not stored keys |
Throws : | ExceptionExceptionInterface |
Internal method to remove an item.
Parameters: | string – |
---|---|
Return type: | boolean |
Throws : | ExceptionExceptionInterface |
Internal method to increment an item.
Parameters: |
|
---|---|
Return type: | int|boolean The new value on success, false on failure |
Throws : | ExceptionExceptionInterface |