redis\Session getUseCustomStorage()

getUseCustomStorage() public method Returns a value indicating whether to use custom session storage. This method overrides the parent implementation and always returns true. public boolean getUseCustomStorage ( )return boolean Whether to use custom storage.

redis\Session destroySession()

destroySession() public method Session destroy handler. Do not call this method directly. public boolean destroySession ( $id )$id string Session ID return boolean Whether session is destroyed successfully

redis\Session readSession()

readSession() public method Session read handler. Do not call this method directly. public string readSession ( $id )$id string Session ID return string The session data

redis\Session writeSession()

writeSession() public method Session write handler. Do not call this method directly. public boolean writeSession ( $id, $data )$id string Session ID $data string Session data return boolean Whether session write is successful

redis\Session $keyPrefix

$keyPrefix public property A string prefixed to every cache key so that it is unique. If not set, it will use a prefix generated from \yii\redis\Application::id. You may set this property to be an empty string if you don't want to use key prefix. It is recommended that you explicitly set this property to some static value if the cached data needs to be shared among multiple applications. public string $keyPrefix = null

redis\Session calculateKey()

calculateKey() protected method Generates a unique key used for storing session data in cache. protected string calculateKey ( $id )$id string Session variable name return string A safe cache key associated with the session variable name

redis\Session $redis

$redis public property The Redis yii\redis\Connection object or the application component ID of the Redis yii\redis\Connection. This can also be an array that is used to create a redis yii\redis\Connection instance in case you do not want do configure redis connection as an application component. After the Session object is created, if you want to change this property, you should only assign it with a Redis yii\redis\Connection object. public yii\redis\Connection|string|array $redis = 'red

redis\Session $useCustomStorage

$useCustomStorage public read-only property Whether to use custom storage. public boolean getUseCustomStorage ( )

redis\LuaScriptBuilder buildOne()

buildOne() public method Builds a Lua script for finding one record public string buildOne ( $query )$query yii\redis\ActiveQuery The query used to build the script

redis\LuaScriptBuilder buildMin()

buildMin() public method Builds a Lua script for finding the min value of a column public string buildMin ( $query, $column )$query yii\redis\ActiveQuery The query used to build the script $column string Name of the column