mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-26 21:22:27 -06:00
22 lines
770 B
Python
Executable file
22 lines
770 B
Python
Executable file
|
|
class CachedDOData:
|
|
# base class for objects that are used to store data in the CRDataCache
|
|
#
|
|
# stores a minimal set of cached data for DistributedObjects between instantiations
|
|
|
|
def __init__(self):
|
|
# override and store cached data
|
|
# this object now owns the data
|
|
# ownership will either pass back to another instantion of the object,
|
|
# or the data will be flushed
|
|
pass
|
|
|
|
def destroy(self):
|
|
# override and handle this object being destroyed
|
|
# this is destruction of this object, not the cached data (see flush)
|
|
pass
|
|
|
|
def flush(self):
|
|
# override and destroy the cached data
|
|
# cached data is typically created by the DistributedObject and destroyed here
|
|
pass
|