~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lru_cache.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-06-05 04:05:05 UTC
  • mfrom: (3473.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20080605040505-i9kqxg2fps2qjdi0
Add the 'alias' command (Tim Penhey)

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            return self[key]
75
75
        return default
76
76
 
77
 
    def keys(self):
78
 
        """Get the list of keys currently cached.
79
 
 
80
 
        Note that values returned here may not be available by the time you
81
 
        request them later. This is simply meant as a peak into the current
82
 
        state.
83
 
 
84
 
        :return: An unordered list of keys that are currently cached.
85
 
        """
86
 
        return self._cache.keys()
87
 
 
88
77
    def cleanup(self):
89
78
        """Clear the cache until it shrinks to the requested size.
90
79