blazor-lumen-boilerplate

Redis Cache

For technical information read the Laravel cache reference documentation.

Namespace

use Illuminate\Support\Facades\Cache;

Create or Update

$data = "Hello world";
Cache::put("uniqueKey", $data);

Read

$fallback = "Goodbye world";
$cachedData = Cache::get("uniqueKey", $fallback);

Delete

Cache::forget("uniqueKey");