Memoizing PHP/MySQL functions
===

I have a function that is slow because of MySQL queries.<br>
The function will return the same result as long as certain MySQL tables remain unchanged.<br>
What is the simplest way to "memoize" such a function in PHP/MySQL?