title: Fastest database engine for caching?
body: <p>I use MySQL for my primary database, where I keep the actual objects. When an object is rendered using a template, rendering takes a lot of time.</p>
  
  <p>Because of that I've decided to cache the produced HTML. Right now I store the cache in files, named appropriate, and it does work significantly faster. I am however aware that it is not the best way to do so.</p>
  
  <p>I need a (preferably key-value) database to store my cache in. I cannot use a caching proxy because I still need to process the cached HTML. Is there such a database with a PHP front end?</p>
  
  <p><strong>Edit:</strong> If I use memcached, and I cache about a million pages, won't I run out of RAM?</p>
  
  <p><strong>Edit 2:</strong> And again, I have <strong>a lot</strong> of HTML to cache (gigabytes of it).</p>