Commit 256a0a0f authored by liuyuzhen's avatar liuyuzhen

删除缓存方法

parent c7184dfd
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 11:02
* Description:
*/
\ No newline at end of file
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:10
* Description:
*/
\ No newline at end of file
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:09
* Description:
*/
\ No newline at end of file
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 11:18
* Description:
*/
\ No newline at end of file
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:48
* Description:
*/
\ No newline at end of file
......@@ -262,10 +262,15 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
return false;
}
$pbundlingInstance = \DAO\PBundlingModel::getInstance(\Our\DbNameConst::salveDBConnectName);
$groupList = \Our\RedisHelper::cachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$pbundlingInstance, 'getList'),array($this->pBundingField,array('bl_id'=>array('in',$blIds)),array(\Our\ApiConst::zero,\Our\ApiConst::five)),\Our\ApiConst::oneDaySecond);
$groupList = \Our\RedisHelper::cachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$pbundlingInstance, 'getList'),array($this->pBundingField,array('bl_id'=>array('in',$blIds)),array(\Our\ApiConst::zero,\Our\ApiConst::five)),\Our\ApiConst::oneDaySecond,array(implode(',',$blIds)));
$newGroupList = $this->getPBundlingList($groupList,$dbName,$withKeyFlag);
return $newGroupList;
}
public function deletPBundlingListByBlId($blId){
$pbundlingInstance = \DAO\PBundlingModel::getInstance(\Our\DbNameConst::salveDBConnectName);
\Our\RedisHelper::delCachedFunction(\Redis\Db4\PBundlingRedisModel::getInstance(),array(&$pbundlingInstance, 'getList'),array(),array('*'.$blId));
}
/**
* 根据商品获取组合
* @param $goodsCommnId
......
<?php
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:15
* Description:
*/
\ No newline at end of file
<?php
namespace Redis\Db0;
/**
* User: liuyuzhen
* Date: 2018/8/20
* Time: 10:30
* Description:
*/
\ No newline at end of file
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