def access(self, key): obj = FileCache.access(self, key) if obj: oid, tid = key self.accessed_oids.append((obj.size, oid)) return obj
def add(self, object): FileCache.add(self, object) oid, tid = object.key self.added_oids.append((object.size, oid))
def __init__(self, maxsize, fpath, parent, reuse=True): FileCache.__init__(self, maxsize, fpath, parent, reuse) self.added_oids = [] self.accessed_oids = []