/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/lru_cache.py

  • Committer: Aaron Bentley
  • Date: 2008-11-03 19:01:14 UTC
  • mfrom: (0.12.79 shelf-manager)
  • mto: This revision was merged to the branch mainline in revision 3823.
  • Revision ID: aaron@aaronbentley.com-20081103190114-9ydfkjm80a8kahwx
Merge shelf-manager into shelf-ui

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
 
77
88
    def cleanup(self):
78
89
        """Clear the cache until it shrinks to the requested size.
79
90