示例#1
0
    def access(self, key):
        obj = FileCache.access(self, key)

        if obj:
            oid, tid = key
            self.accessed_oids.append((obj.size, oid))

        return obj            
示例#2
0
    def add(self, object):
        FileCache.add(self, object)

        oid, tid = object.key
        self.added_oids.append((object.size, oid))
示例#3
0
 def __init__(self, maxsize, fpath, parent, reuse=True):
     FileCache.__init__(self, maxsize, fpath, parent, reuse)
     
     self.added_oids = []
     self.accessed_oids = []