src/PhpConsole/Storage/MongoDB.php
protected function get($key) {
		$record = $this->mongoCollection->findOne(array('key' => $key));
		if($record && is_array($record) && array_key_exists('data', $record)) {
			return $record['data'];
		}
	}
protected function get($key) {
		$record = $this->mongoCollection->findOne(array('key' => $key));
		if($record && is_array($record) && array_key_exists('data', $record)) {
			return $record['data'];
		}
	}
protected function get ( $ key ) { $ record = $ this -> mongoCollection -> findOne ( array ( 'key' => $ key ) ) ; if ( $ record && is_array ( $ record ) && array_key_exists ( 'data' , $ record ) ) { return $ record [ 'data' ] ; } }
Get data by key if not expired
@param $key
@return string
Get data by key if not expired