dev-main 2021-09-14 13:55 UTC

This package is auto-updated.

Last update: 2024-03-28 10:45:52 UTC


README

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();