Skip to content

Commit

Permalink
Update AccessToken.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thenbsp committed Jan 15, 2016
1 parent 1055f94 commit df90c7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/AccessToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,16 @@ public function getAccessToken()

return $value['access_token'];
}

/**
* 从缓存中清除 AccessToken
*/
public function removeAccessToken()
{
$key = $this->_getCacheName();

return $this->cache->delete($key);
}

/**
* 获取 AccessToken(从 API 获取)
Expand Down

0 comments on commit df90c7d

Please sign in to comment.