# File lib/fog/identity/openstack/v3/models/domains.rb, line 11
          def all(options = {})
            if service.openstack_cache_ttl > 0
              cached_domain, expires = Fog::Identity::OpenStack::V3::Domain.cache[{:token   => service.auth_token,
                                                                                   :options => options}]
              return cached_domain if cached_domain && expires > Time.now
            end

            domain_to_cache = load_response(service.list_domains(options), 'domains')
            if service.openstack_cache_ttl > 0
              cache = Fog::Identity::OpenStack::V3::Domain.cache
              cache[{:token => service.auth_token, :options => options}] = [domain_to_cache,
                                                                            Time.now + service.openstack_cache_ttl]
              Fog::Identity::OpenStack::V3::Domain.cache = cache
            end
            domain_to_cache
          end