Commit 2b25a5c1 authored by wwccw0591's avatar wwccw0591

pc

parent 7d8fc5f6
......@@ -2,17 +2,12 @@
namespace Redis\Db0;
/**
* �û���Ϣ����
*/
class SessionRedisModel extends \Redis\Db0\AbstractModel {
static $prefix = "";
/**
* ����
*
* @var string
*/
protected $_tableName = 'PHPREDIS_SESSION';
/**
......@@ -25,12 +20,7 @@ class SessionRedisModel extends \Redis\Db0\AbstractModel {
return $this->_tableName . self::DELIMITER . $id;
}
/**
* ����id�����û���Ϣ
*
* @param int $id
* @return array
*/
public function find($id) {
$result = $this->get($this->calcKey($id));
......@@ -89,18 +79,10 @@ class SessionRedisModel extends \Redis\Db0\AbstractModel {
$res=$this->set($this->calcKey($id), $data,$experio);
return $res;
}
/**
* ��ʵ��
*
* @var \Redis\Db0\UserModel
*/
private static $_instance = null;
/**
* ��ȡ��ʵ��
*
* @return \Redis\Db0\UserModel
*/
public static function getInstance() {
if (!(self::$_instance instanceof self)) {
self::$_instance = new self();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment