Querying MySQL InnoDB to find if the Record is in its Buffer Pool
There is no built-in mechanism to query the MySQL cache without causing MySQL to bring the row into memory from disk if it is not already in memory.

You might want to consider using a caching layer between your website and the database.  Stack Exchange uses Redis; you may want to evaluate that.