:param name: the name of the cache entry.
        :return: the entry or none.
162590
def _getCacheEntry(self, name):
        
        return next((x for x in self._uploadCache if x['name'] == name), None)
933735
def lookup_name_fast(self, name):
        """"""

        if name in self.__names:
            return self.__names[name]

        count = self.__get_count_cached()
        lo = 0
        hi = count
        while lo < hi:
            mid = (lo + hi) // 2
            if self.__get_name_cached(mid) < name:
                lo = mid + 1
            else:
                hi = mid

        if lo != count and self.__get_name_cached(lo) == name:
            return self.__get_info_cached(lo)
1138065
private MembershipType getFromCache(String name)
   {
      return (MembershipType)cache.get(name, CacheType.MEMBERSHIPTYPE);
   }
516533
def cache(self):
        """"""
        if self._cache is None:
            self._cache = django_cache.get_cache(self.cache_name)
        return self._cache
1040237
def load(self, name):
        
        try:
            return self._factories[name]()
        except KeyError:
            raise ValueError(
                "no %s factory registered under name %r, options are: %r" %
                (self.interface.__name__, name, sorted(self._factories)),
            )
662123
def getaddress(name)
      unless @cache[name]
        @mutex.synchronize do
          @cache[name] ||= CachedValue.new(@ttl)
        end
      end
      @cache[name].get_or_refresh{ resolve(name) }
    end
447014
public static Cache getSyncCache(String name) {
		if (StrKit.isBlank(name) || !GlobalSyncRedis.caches.containsKey(name)) {
			return Redis.use();
		}
		return GlobalSyncRedis.caches.get(name);
	}
197308
def cache_path(self, name):
        
        return os.path.join(self._path, self.CACHE_DIR, name)
1310376
def get_by_name(self, name): # pylint: disable=invalid-name,redefined-builtin
        
        rs, _ = self.list(filter=field('name').eq(name), limit=1)
        if len(rs) is 0:
            raise CDRouterError('no such device')
        return rs[0]
923402
public ICache getCache(String name) {
        return cacheFactory != null ? cacheFactory.createCache(name) : null;
    }
670172
def _get_name(self):
        
        if self._name is None:
            self._name = self._generate_name()
        return self._name
194337
def getParameter(self, name):
        
        return lock_and_call(
            lambda: Parameter(self._impl.getParameter(name)),
            self._lock
        )
720066
def GetSubkeyByName(self, name):
    
    if not self._registry_key and self._registry:
      self._GetKeyFromRegistry()

    return self._subkeys.get(name.upper(), None)
173444
def get_storage_pool_by_name(self, name):
        
        for storage_pool in self.conn.storage_pools:
            if storage_pool.name == name:
                return storage_pool
        raise KeyError("Storage pool of that name not found")
620933
def lookup_name_slow(self, name):
        """"""

        for index in xrange(self.__get_count_cached()):
            if self.__get_name_cached(index) == name:
                return self.__get_info_cached(index)
281926
def getbyname(self, name):
        
        if name not in self._schbyname:
            raise KeyError('name {0} not registered'.format(name))

        return self._schbyname[name]
1056061
def get_or_create(name,  value):

    

    if name not in storage:
        storage[name] = value
    return storage[name]