Looking to hire Laravel developers? Try LaraJobs

caches maintained by abhishek-laravel

Description
caches store
Last update
2021/09/14 15:55 (dev-main)
License
Links
Downloads
23

Comments
comments powered by Disqus

Issues License

1> create constant file in config folder -> now add <?php

return [
     'CACHE' => [
        'cache_name' => ["tbl_name"=>"tbl_name","file_name"=>"cache_file_name"],
     ]
]

2> Use in controller use theopeneyes\caches\CachePackage;

  -> For Set Cache 
  CachePackage::set('Constant_name',500);
  
  -> For get Cache      
  CachePackage::get('Constant_name');
  
  -> Search With key & value
  CachePackage::getWithSearch('Constant_name','key_name','value_name');
  
  ->Delete Cache 
  CachePackage::delete('Constant_name');
  
  ->Delete All Cache
  CachePackage::deleteAll();