Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel redis 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
 
PREVIOUS NEXT
Tagged: #laravel #redis #cache
ADD COMMENT
Topic
Name
5+8 =