public function read($key)
    {
        $query = $this->_table->find('kv');

        if ($key !== '*') {
            $query->where([
                $this->_table->aliasField('namespace') . ' IS' => $key
            ]);
        }

        return $query
            ->cache(function ($q) {
                return md5(serialize($q->clause('where')));
            }, $this->_cacheConfig)
            ->toArray();
    }
public function read($key)
    {
        $query = $this->_table->find('kv');

        if ($key !== '*') {
            $query->where([
                $this->_table->aliasField('namespace') . ' IS' => $key
            ]);
        }

        return $query
            ->cache(function ($q) {
                return md5(serialize($q->clause('where')));
            }, $this->_cacheConfig)
            ->toArray();
    }
public function read ( $ key ) { $ query = $ this -> _table -> find ( 'kv' ) ; if ( $ key !== '*' ) { $ query -> where ( [ $ this -> _table -> aliasField ( 'namespace' ) . ' IS' => $ key ] ) ; } return $ query -> cache ( function ( $ q ) { return md5 ( serialize ( $ q -> clause ( 'where' ) ) ) ; } , $ this -> _cacheConfig ) -> toArray ( ) ; }
Read method is used for reading configuration information from sources.
These sources can either be static resources like files, or dynamic ones like
a database, or other datasource.

@param string $key Key to read.
@return array An array of data to merge into the runtime configuration
Read method is used for reading configuration information from sources . These sources can either be static resources like files or dynamic ones like a database or other datasource .