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

            if ($data->lifetime >= time()) {
                return ['name' => $key, 'value' => $this->unpacking($data->value), 'lifetime' => $data->lifetime];
            } else {
                $this->remove($key);
            }
        }
    }
private function find($key)
    {
        if ($this->exists($key)) {
            $data = Query::from($this->table)
                        ->where('name', '=', $key)
                        ->first();

            if ($data->lifetime >= time()) {
                return ['name' => $key, 'value' => $this->unpacking($data->value), 'lifetime' => $data->lifetime];
            } else {
                $this->remove($key);
            }
        }
    }
private function find ( $ key ) { if ( $ this -> exists ( $ key ) ) { $ data = Query :: from ( $ this -> table ) -> where ( 'name' , '=' , $ key ) -> first ( ) ; if ( $ data -> lifetime >= time ( ) ) { return [ 'name' => $ key , 'value' => $ this -> unpacking ( $ data -> value ) , 'lifetime' => $ data -> lifetime ] ; } else { $ this -> remove ( $ key ) ; } } }
Find item in cache.

@param string $key

@return array
Find item in cache .