Update, I am able to upload my data through this command.
$filename = 'file.txt';
$fp = @fopen($filename, 'r');
if ($fp) {
$array = explode("\n", fread($fp, filesize($filename)));
}
$redis = Redis::connection();
Redis::sadd('dictionary', $array);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community