cache laravel example

PHP
php artisan cache:clearCache::put('key', 'value', $seconds);
Cache::rememberForever('users', function () {
    return DB::table('users')->get();
}); 
Cache::get('key');
Cache::has('key');
Cache::pull('key');
Source

Also in PHP: