Skip to content

theriskus/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Simple cache

Requirements

  1. PHP 5.6 => above
  2. Composer
  3. Redis 5.0 (optional)
  4. Memcached 1.5.X (optional)

Installing

To install this module, you're should use composer library : composer require theriskus/cache

Simple use:

  1. For initialize add to your bootstrap file this: Cache::init(driver); and add use WorkTestMax\Classes\Cache
Driver must be string and equal: 'redis' or 'memcached' or 'file'
  1. For set any params: Cache::set(string $cache_id, mixed $data, int $ttl, string $sub_dir = '')
  2. For get any params: Cache::get(string $cache_id, string $sub_dir = '');

About

📦 Simple cache class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages