Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel cache

// i am using laravel versioin 8  so...... 
// use this in ur controller then
use IlluminateSupportFacadesCache;
// in function 
Cache::put('key', 'value', 1440);// 1 day
Cache::get('key');
Cache::has('key');
Cache::pull('key');
Cache::forget('key');// remove spacific
Cache::flush(); // remove  all
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #cache
ADD COMMENT
Topic
Name
3+2 =