vendredi 7 décembre 2018

How to rename Redis command in Laravel 5?

I'm using Laravel 5.7 with Redis. In my Redis config I renamed some commands following the tutorial Step 5 - Renaming Dangerous Commands in DigitalOcean. I added those lines as an example:

rename-command DEL CODE_DEL
rename-command CONFIG CODE_CONFIG
...

Now I get error in Laravel 5.7

ERR unknown command `DEL`, with args beginning with: ...

because actual command is now CODE_DEL.

Is there a way to tell Redis use CODE_DEL instead of DEL command?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire