'@param strictkey: raise a KeyError exception if key isn\'t present'

def refresh(self, key, strictkey=True):

    assert self._assert_invariants()
    if (not dict.has_key(self, key)):
        if strictkey:
            raise KeyError, key
        return
    self._lru.remove(key)
    self._lru.append(key)
