How can I wordpress cache a database request with no existing plugin?

How can I wordpress cache a database request with no existing plugin?