Laravel Redis: Interacting With Redis
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Redis;
class UserController extends Controller
{
/**
* Show the profile for the given user.
*
* @param int $id
* @return Response
*/
public function showProfile($id)
{
$user = Redis::get('user:profile:'.$id);
return view('user.profile', ['user' => $user]);
}
} Using Multiple Redis Connections
Pipelining Commands
Related concepts
→
Interacting With Redis
→
Semantic portal