Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Decorators.CachedMemberFunctions Class Reference

Public Member Functions

 clearInstanceCache (cls, instance)
 deleteInstanceCache (cls, instance)
 callMemberFunction (cls, instance, function, *args, **kwargs)

Protected Member Functions

 _getInstanceLock (cls, instance)

Detailed Description

Helper class to handle instance-cache w.r.t. results of member-functions decorated with '@cache_per_instance'.

Member Function Documentation

◆ callMemberFunction()

UM.Decorators.CachedMemberFunctions.callMemberFunction ( cls,
instance,
function,
* args,
** kwargs )
Call the specified member function, make use of (results) cache if available, and create if not.

◆ clearInstanceCache()

UM.Decorators.CachedMemberFunctions.clearInstanceCache ( cls,
instance )
Clear all the cache-entries for the specified instance.

◆ deleteInstanceCache()

UM.Decorators.CachedMemberFunctions.deleteInstanceCache ( cls,
instance )
Completely delete the entry of the specified instance.

The documentation for this class was generated from the following file:
  • UM/Decorators.py