public function afterload() { parent::afterload(); $time = time(); foreach ($this->keys as $handle => $item) { if ($item['expired'] < $time) { unset($this->keys[$handle]); } } }