public function afterDelete() { parent::afterDelete(); yii::$app->redis->hdel($this->key, $this->option_key); }
public function afterSave($insert, $changedAttributes) { $this->checkModel->status = 1; $this->checkModel->save(); parent::afterSave($insert, $changedAttributes); // TODO: Change the autogenerated stub }
public function afterDelete() { self::cache(1); parent::afterDelete(); // TODO: Change the autogenerated stub }