/** * 从缓存中调用 取车门店营业时间 * @param $json_params * @return bool|string */ public static function PickUpOpenTimeRedis($json_params) { $Redis = YiiRedis::getInstance(); $redisKey = 'pickUpOpenTime_' . md5($json_params); if ($Redis->get($redisKey)) { $Rs = $Redis->get($redisKey); } else { $Rs = RcManager::PickUpOpenTimeRQ($json_params); $Rs_array = json_decode($Rs, true); if ($Rs_array['status']) { $Redis->set($redisKey, $Rs, 60 * 60 * 24 * 30); //30d } } return $Rs; }