(Shortest import: from brian2.utils.caching import cached)
from brian2.utils.caching import cached)
Decorator to cache a function so that it will not be re-evaluated when called with the same arguments. Uses the _hashable function to make arguments usable as a dictionary key even though they mutable (lists, dictionaries, etc.).
_hashable