Esempio n. 1
0
 /**
  * Return Item by id
  *
  * Method return null if item with that id is absent.
  * Format of Item - Array("id"=>123, "field1"=value1, ...)
  *
  * @param int|string $id PrimaryKey
  * @return array|null
  */
 public function read($id)
 {
     return $this->cashStore->read($id);
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  *
  * {@inheritdoc}
  */
 public function read($id)
 {
     $this->preRead($id);
     $result = $this->dataStore->read($id);
     return $this->postRead($result, $id);
 }