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

        return  count($data) > 0;
    }
private function exists($key)
    {
        $data = Query::from($this->table)->where('name', '=', $key)->get();

        return  count($data) > 0;
    }
private function exists ( $ key ) { $ data = Query :: from ( $ this -> table ) -> where ( 'name' , '=' , $ key ) -> get ( ) ; return count ( $ data ) > 0 ; }
Check if cache key exists in database.

@param string $key

@return bool
Check if cache key exists in database .