Array session storage
Defines an ArrayObject interface for accessing session storage, with options for setting metadata, locking, and marking as isImmutable.
Constructor
Instantiates storage as an ArrayObject, allowing property access. Also sets the initial request access time.
Parameters: |
|
---|
Set the request access time
Parameters: | float – |
---|---|
Return type: | ArrayStorage |
Retrieve the request access time
Return type: | float |
---|
@param mixed $key
Parameters: | mixed – |
---|---|
Throws ExceptionRuntimeException: | |
Lock this storage instance, or a key within it
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Is the object or key marked as locked?
Parameters: | null|int|string – |
---|---|
Return type: | bool |
Unlock an object or key marked as locked
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Mark the storage container as isImmutable
Return type: | ArrayStorage |
---|
Is the storage container marked as isImmutable?
Return type: | bool |
---|
Set storage metadata
Metadata is used to store information about the data being stored in the object. Some example use cases include: - Setting expiry data - Maintaining access counts - localizing session storage - etc.
Parameters: |
|
---|---|
Return type: | ArrayStorage |
Throws : | ExceptionRuntimeException |
Retrieve metadata for the storage object or a specific metadata key
Returns false if no metadata stored, or no metadata exists for the given key.
Parameters: | null|int|string – |
---|---|
Return type: | mixed |
Clear the storage object or a subkey of the object
Parameters: | null|int|string – |
---|---|
Return type: | ArrayStorage |
Throws : | ExceptionRuntimeException |