Skip to content

Instantly share code, notes, and snippets.

@Charlie-Lucas
Created January 11, 2016 08:57
Show Gist options
  • Save Charlie-Lucas/7c1b370d08f3c02e2fc9 to your computer and use it in GitHub Desktop.
Save Charlie-Lucas/7c1b370d08f3c02e2fc9 to your computer and use it in GitHub Desktop.
<?php
public function getById($id)
{
$hash = "reference:" . $id;
return $this->unredislizeArray($this->redis->hgetall($hash));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment