protected function doFetch($id) { $value = parent::doFetch($id); if (!is_string($value)) { return $value; } try { return unserialize($value); } catch (\Exception $e) { return $value; } }