Mercurial > hgrepos > Python > libs > ConfigMix
diff configmix/config.py @ 506:dffa692751b1
Implement clear_cache() for the configuration
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 18 Dec 2021 11:06:34 +0100 |
| parents | 4dbc16ff2670 |
| children | 402c7f5a2b76 |
line wrap: on
line diff
--- a/configmix/config.py Sat Dec 18 02:36:30 2021 +0100 +++ b/configmix/config.py Sat Dec 18 11:06:34 2021 +0100 @@ -337,6 +337,9 @@ self.__cache = {} super(Configuration, self).__init__(*args, **kwds) + def clear_cache(self): + self.__cache.clear() + def __getitem__(self, key): """Mapping and list interface that forwards to :meth:`~.getvarl_s`
