src/Caches/Drivers/PDODriver.php
public function get($name, $default = null)
    {
        if ($this->exists($name)) {
            $data = Query::from($this->table)
                        ->where('name', '=', $name)
                        ->first();

            if ($data->lifetime >= time()) {
                return $this->unpacking($data->value);
            } else {
                $this->remove($name);

                return $default;
            }
        }

        return $default;
    }
public function get($name, $default = null)
    {
        if ($this->exists($name)) {
            $data = Query::from($this->table)
                        ->where('name', '=', $name)
                        ->first();

            if ($data->lifetime >= time()) {
                return $this->unpacking($data->value);
            } else {
                $this->remove($name);

                return $default;
            }
        }

        return $default;
    }
public function get ( $ name , $ default = null ) { if ( $ this -> exists ( $ name ) ) { $ data = Query :: from ( $ this -> table ) -> where ( 'name' , '=' , $ name ) -> first ( ) ; if ( $ data -> lifetime >= time ( ) ) { return $ this -> unpacking ( $ data -> value ) ; } else { $ this -> remove ( $ name ) ; return $ default ; } } return $ default ; }
Get a cache key.

@param string name

@return mixed
Get a cache key .