mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
parent
3f185aada2
commit
9d899e3dab
|
@ -91,6 +91,12 @@ class EntityCache:
|
||||||
|
|
||||||
raise KeyError('No cached entity for the given key')
|
raise KeyError('No cached entity for the given key')
|
||||||
|
|
||||||
|
def clear(self):
|
||||||
|
"""
|
||||||
|
Clear the entity cache.
|
||||||
|
"""
|
||||||
|
self.__dict__.clear()
|
||||||
|
|
||||||
def ensure_cached(
|
def ensure_cached(
|
||||||
self,
|
self,
|
||||||
update,
|
update,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user