This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

caches store

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

This package is auto-updated.

Last update: 2021-10-28 05:41:35 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();