예제 #1
0
파일: Collection.php 프로젝트: kmfk/slowdb
 /**
  * Retrieves the value based on the key
  *
  * @param  mixed $key The key to fetch data for
  *
  * @return array
  */
 public function get($key)
 {
     $position = $this->getPosition($key);
     if (false !== $position) {
         return [$key => $this->file->read($position)];
     }
     return false;
 }