public function cache_key_for_model($pk) { if (is_array($pk)) { $pk = implode('-', $pk); } return $this->class->name . '-' . $pk; }