$supportedKeys
$supportedKeys : array
Supported variable key name.
Abstract class of storage engine for user session related data, like state & authorization code for oauth2.0, access token & refresh token for current user.
$supportedKeys : array
Supported variable key name.
get(string $key, \mix $default = false) : \mix
Get the variable value specified by the variable key name for current session user from the storage system.
string | $key | Variable key name |
\mix | $default | Default value if the key couldn't be found |
Returns the value for the specified key if it exists, otherwise return $default value
set(string $key, \mix $value) : bool
Save the variable item specified by the variable key name into the storage system for current session user.
string | $key | Variable key name |
\mix | $value | Variable value |
Returns true if the saving operation is success, otherwise returns false
Loading…