1.

How To Set Multiple Values (array) In Redis?

Answer»

To set multiple values in REDIS use the FOLLOWING commands:

$redis->lpush("tutorials", "PHP");
$redis->lpush("tutorials", "MYSQL");
$redis->lpush("tutorials", "Redis");
$redis->lpush("tutorials", "MONGODB");
$redis->lpush("tutorials", "Mysql");

To set multiple values in Redis use the following commands:

$redis->lpush("tutorials", "PHP");
$redis->lpush("tutorials", "MySQL");
$redis->lpush("tutorials", "Redis");
$redis->lpush("tutorials", "Mongodb");
$redis->lpush("tutorials", "Mysql");



Discussion

No Comment Found