insert() public method
Inserts the record into the database using the attribute values of this record. Usage example: $customer = new Customer;
$customer->name = $name;
$customer->email = $email;
$customer->insert();
public boolean insert ( $runValidation = true, $attributes = null )$runValidation boolean
Whether to perform validation (calling \yii\redis\Model::validate()) before saving the record. Defaults to true. If the validation fails, the record will not be saved to the d