Update cache.class.php

added serialize/unserialize to store anykind of data, not just strings