Laravel Classroom image

Anil  Bist / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4|Last
Lessons:-Caching

17.3 Retrieving Values
To retrieve an item from the cache use the get() method and supply the key, for example..1 <?php
2
3 $data = Cache::get('mydata');
By default, if the cached item does not exist or has expired already, the method will return NULL.
However, you can pass an optional second parameter to provide an alternate default value.
1 <?php
2
3 $data = Cache::get('mydata', 'complicated data');
You can also pass a closure as the second parameter and the value returned by the closure will
be used if the cache data does not exist. The closure will only be executed if the key does not
exist.

 
 
 
image
Anil  Bist

Skills    Laravel

Qualifications :- High School - SLV, College/University - Graphic Era Deemed Univ University,
Location :-Dehradun,Dehradun,Uttarakhand,India
Description:-

I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore and my 1st framework was "Ruby on Rail" as Web development and delivered around 5+ Projects using this platform. Then came another dimension as JEE/Sturst framework, Gradually I realized that I want to build something on my own and give my passion and energy on creating something different a
Explore

 

  Students (0)