code: def all(cls):
          
          if not hasattr(cls, '_cache'):
              cls._cache = cls._all()
          return cls._cache
docs: Wrapper around _all() to cache and return all results of something
  
          >>> ec2.instances.all()
          [ ... ]