Attempt to get the repository from the local cache.

@param string $name
@return \Krucas\Settings\Contracts\Repository
432485
protected function get($name)
    {
        return isset($this->repositories[$name]) ? $this->repositories[$name] : $this->resolve($name);
    }
1180716
public function findCache(string $name='')
  {
    if ( empty($name) ) {
      # Take first available
      $cache = \reset($this->caches);
      if ($cache === false)
        return null;
    } else {
      # Attempt to find the cache from the list
      $cache = ( $this->caches[\strtolower($name)] ?? null);
    }

    return $cache;
  }
1176093
public function getStore( string $name = null ): CacheStoreInterface
	{
		if( is_null($name) )
		{
			$name = "default";
		}

		if( isset($this->store[$name]) || $this->loadStore($name) )
		{
			return $this->store[$name];
		}

		throw new NotFoundException("The '{$name}' cache store config not found");
	}
459720
public static function tryGetResource(string $name)
    {
        $resource = static::getInstance($name)->tryGetResource();
        if(!$resource)
        {
            static::pushResourceToRequestContext($resource);
        }
        return $resource;
    }
1146452
protected function get( $name )
	{
		return isset( $this->disks[$name] ) ? $this->disks[$name] : $this->resolve( $name );
	}
949310
public function getRepository($name = null)
    {
        $name = strtolower($name);

        if ($name) {
            if (isset($this->repositories[$name])) {
                return $this->repositories[$name];
            }

            return $this->getNullRepository();
        }

        return $this->repository ?: $this->getNullRepository();
    }
272679
public function getCache(): ?Repository
    {
        if (!$this->hasCache()) {
            $this->setCache($this->getDefaultCache());
        }
        return $this->cache;
    }
380660
public function getRepository($name = null) {
		try {
			return parent::getRepository($name);
		} catch(\yii\base\UnknownPropertyException $e) {
		
		}
		
		if(!isset($this->coreRepository)) {
			$this->coreRepository = ClassHelper::createObject([
				'class' => BaseActiveCoreRepository::class,
				'domain' => $this->domain,
				'id' => $this->id,
				'point' => $this->point,
			]);
		}
		return $this->coreRepository;
	}
797432
protected function get($name)
    {
        $this->load();

        return isset($this->lng[$name]) ? $this->lng[$name] : $name;
    }
1092246
public function get($name) {
        N('cache_read',1);
        return $this->handler->get($_SERVER['HTTP_APPVERSION'].'/'.$this->options['prefix'].$name);
    }
333915
public function getSetting($name)
    {
        if ($this->hasName($name) === false) {
            throw NameDoesNotExist::named($name, $this->alias());
        }
        /** @var SettingRepository $repository */
        $repository = app(SettingRepository::class);
        $query = $repository->getNewQuery();
        $query = $this->makeQueryFiltered($query);
        $setting = $query->where('name', $name)->first();
        if (!$setting) {
            $defaultValue = $this->getDefault($name);
            $this->update($name, $defaultValue);
            $setting = $query->first();
        }
        return $setting;
    }
36480
public function get($name, $repoName = null, ...$args)
    {
        $repo = $this->getRepository($repoName);

        if (!$repo) {
            return null;
        }

        $method = 'get' . ucfirst($name);

        if (!is_callable([$repo, $method])) {
            return null;
        }

        return $repo->$method(...$args);
    }
173902
function getRepository($entityName)
    {
        if (isset($this->cachedRepository[$entityName])) {
            return $this->cachedRepository[$entityName];
        }
        $className = "Fredy\\Model\\Repository\\Repository";
        $entityClassName = 'Model\\Entity\\'.$entityName;
        return new $className(new $entityClassName(),$this->db);
    }
1349908
public function getSimpleCache($name)
    {
        $cache = $this->getConnector($name)->getSimpleCacheAdapter();

        if ($this->logger instanceof LoggerInterface) {
            $cache->setLogger($this->logger);
        }

        return $cache;
    }
202678
public static function cache( $name )
	{
		static $cache = [];

		$name = (string) $name;

		if( ! isset($cache[$name]) )
		{
			$cache[$name] = new self($name);
		}

		return $cache[$name];
	}
589275
function get($name){
        if(!isset($this->db[$name])){
            return null;
        }
        $r = $this->db[$name];
        return $r();
    }
31248
public function get($name)
    {
        if (empty($this->slices[$name])) {
            $this->slices[$name] = $this->loader($name)->asSlice(
                $this->parameters
            );
        }

        return $this->slices[$name];
    }