feat 新增清理TMDB缓存命令

This commit is contained in:
jxxghp
2023-08-22 12:32:48 +08:00
parent afe5ee9abb
commit 7435b7c702
5 changed files with 44 additions and 2 deletions

View File

@ -389,3 +389,10 @@ class TheMovieDbModule(_ModuleBase):
:param page: 页码
"""
return self.tmdb.get_person_credits(person_id=person_id, page=page)
def clear_cache(self):
"""
清除缓存
"""
self.tmdb.clear_cache()
self.cache.clear()