src/Storages/MemoryAdapterStorage.php
public function read($key)
	{
		// Get data from memory storage
		$data = $this->memoryStorage->read($key);
		if ($data !== null) {
			return $data;
		}

		// Get data from cached storage and write them to memory storage
		$data = $this->cachedStorage->read($key);
		if ($data !== null) {
			$this->memoryStorage->write($key, $data, []);
		}

		return $data;
	}
public function read($key)
	{
		// Get data from memory storage
		$data = $this->memoryStorage->read($key);
		if ($data !== null) {
			return $data;
		}

		// Get data from cached storage and write them to memory storage
		$data = $this->cachedStorage->read($key);
		if ($data !== null) {
			$this->memoryStorage->write($key, $data, []);
		}

		return $data;
	}
public function read ( $ key ) { // Get data from memory storage $ data = $ this -> memoryStorage -> read ( $ key ) ; if ( $ data !== null ) { return $ data ; } // Get data from cached storage and write them to memory storage $ data = $ this -> cachedStorage -> read ( $ key ) ; if ( $ data !== null ) { $ this -> memoryStorage -> write ( $ key , $ data , [ ] ) ; } return $ data ; }
Read from cache.

@param string $key
@return mixed|null
@phpcsSuppress SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint
Read from cache .