public function get($key)
    {
        if (!$this->has($key)) {
            return null;
        }

        $file = $this->directory . substr(md5($this->prefix() . $key), 0, 10) . '.dat';

        return unserialize(file_get_contents($file));
    }
public function get($key)
    {
        if (!$this->has($key)) {
            return null;
        }

        $file = $this->directory . substr(md5($this->prefix() . $key), 0, 10) . '.dat';

        return unserialize(file_get_contents($file));
    }
public function get ( $ key ) { if ( ! $ this -> has ( $ key ) ) { return null ; } $ file = $ this -> directory . substr ( md5 ( $ this -> prefix ( ) . $ key ) , 0 , 10 ) . '.dat' ; return unserialize ( file_get_contents ( $ file ) ) ; }
Gets a value in the Cache for the specified key.

@param string $key The key name
@return mixed Cache content (null if the key does not exist).
Gets a value in the Cache for the specified key .