def set(self, key, value, time = 0, key_prefix = None):
        key = (key_prefix, key)
        if time:
            self[key] = (value, pytime.time() + time)
        else:
            self[key] = (value, None)

        if len(self) > self.limit:
            self._shrink()
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/cache.py/DumbCache.set/original