1 使用CCacheHttpSession时,memached中的真实值:
session_id in memcached:
$key=md5("nameYii.CCacheHttpSession.REAL_ID")
name: cmemcache.keyPrefix
or
$key=md("APPIDYii.CCacheHttpSession.REAL_ID)
APPID=Yii::app()->getId = sprintf('%x',crc32($this->getBasePath().$this->name));
key in memcached:
same as session_id, change REAL_ID to REAL_KEY
2 使用CHttpSession时,memached中的真实值:
session_id in memcached:
$key=REAL_ID
key in memcache:
$key=REAL_KEY
3 使用CMemcache时,key在memached中的真实值:
$key = md5($this->keyPrefix.$key)
没有设置keyPrefix时
keyPrefix = Yii::app()->getId() = sprintf('%x',crc32($this->getBasePath().$this->name));
4 使用SchemeCache时,表名在memached中的真实值:
$key='yii:dbschema'.$this->_connection->connectionString.':'.$this->_connection->username.':'.$tableName;
$table=$cache->get($key);
5 CCace时, key在memached中的真实值:
$key = md5($this->keyPrefix.$key)
没有设置keyPrefix时
keyPrefix = Yii::app()->getId() = sprintf('%x',crc32($this->getBasePath().$this->name));