Commit 905b3878 authored by hujun's avatar hujun

del cache

parent 59755d3a
......@@ -114,7 +114,7 @@ class RedisCacheService
* @param $id
* @return bool
*/
public function delRedisCache($type, $id)
public function delRedisCache($type, $id = 0)
{
$result = 0;
switch ($type) {
......@@ -129,6 +129,13 @@ class RedisCacheService
break;
case 4 :
$result = $this->redis_ext->del($this->rule_key.$id);
break;
case 5 :
$result = $this->redis_ext->del($this->group_site_key.$id);
break;
case 6 :
$result = $this->redis_ext->del($this->site_city_all_key);
break;
}
return $result;
......
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