Add EntityCache.clear

Closes #3073.
This commit is contained in:
Lonami Exo 2021-06-19 17:49:06 +02:00
parent 3f185aada2
commit 9d899e3dab

View File

@ -91,6 +91,12 @@ class EntityCache:
raise KeyError('No cached entity for the given key')
def clear(self):
"""
Clear the entity cache.
"""
self.__dict__.clear()
def ensure_cached(
self,
update,