Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I in PHP escape a string before inserting into Redis?

Tags:

php

redis

What is the most secure way of escaping a string before it's inserted into a Redis database?

like image 570
Gustav Avatar asked Mar 08 '26 02:03

Gustav


1 Answers

Redis is binary safe both for keys and values. You do not have to escape things before putting them in Redis.

like image 186
Didier Spezia Avatar answered Mar 10 '26 17:03

Didier Spezia