@locking
    def cull(self):
        '''Reduces the number of cached items'''

        doomed = [k for (i, k) in enumerate(self.storage)
                  if i % self.cull_frequency == 0]
        for k in doomed:
            self.delete(k)
dataset/ETHPy150Open onitu/onitu/drivers/flickr/onitu_flickr/flickrapi/cache.py/SimpleCache.cull/original