public function setSource($model, $data = UNDEFINED)
{
parent::setSource($model, array('db' => new Memcached($x = $data . '_' . $model->table), 'prefix' => $model->table));
if (!$model->_table[$this->short_name]['db']->getServerList()) {
$model->_table[$this->short_name]['db']->addServer('localhost', 11211);
}
if (!$model->hasElement($model->id_field)) {
$model->addField($model->id_field)->system(true);
}
return $this;
}