diff options
author | Michael Long <mchobbylong@gmail.com> | 2019-08-12 06:25:22 +0200 |
---|---|---|
committer | Michael Long <mchobbylong@gmail.com> | 2019-08-12 06:25:22 +0200 |
commit | 4aec0ed32942b52535b69bfbe33ff9e8e957b245 (patch) | |
tree | e59525949e1c3bc434cb1163533aa3b8fe319a83 /system/libraries/Session/drivers | |
parent | 7d741c2ba0cc694b57469c692bb0b197e0127e95 (diff) |
Add parameter description
Diffstat (limited to 'system/libraries/Session/drivers')
-rw-r--r-- | system/libraries/Session/drivers/Session_redis_driver.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/system/libraries/Session/drivers/Session_redis_driver.php b/system/libraries/Session/drivers/Session_redis_driver.php index 4976e9473..1f1004fb9 100644 --- a/system/libraries/Session/drivers/Session_redis_driver.php +++ b/system/libraries/Session/drivers/Session_redis_driver.php @@ -447,13 +447,15 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle * * Sets expiration for a key * + * @param string $key Redis key + * @param int $ttl The key's remaining Time To Live, in seconds. * @return bool */ - protected function _expire($key, $timeout) + protected function _expire($key, $ttl) { if (method_exists($this->_redis, 'expire')) - return $this->_redis->expire($key, $timeout); - return $this->_redis->setTimeout($key, $timeout); + return $this->_redis->expire($key, $ttl); + return $this->_redis->setTimeout($key, $ttl); } // ------------------------------------------------------------------------ @@ -463,6 +465,7 @@ class CI_Session_redis_driver extends CI_Session_driver implements SessionHandle * * Deletes a key * + * @param string $key Redis key * @return bool */ protected function _delete($key) |