Skip to content

mtoolkit/mtoolkit-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MToolkit - Cache

The cache module of MToolkit framework.

Cache types

  • MySQL
  • File
  • APC

Usages

Following, the examples of each type of supported cache.

MySQL

$cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(
    MCacheType::MYSQL,
    array(
        'db' => new PDO(...),
        'table' => 'mcache'
    )
));

File

$cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(
    MCacheType::FILE,
    array(
        'path' => '/temp/cache'
    )
));

APC

$cacheManager = MCacheFactoryImpl::getManager(new MCacheConfiguration(
    MCacheType::APC,
    array()
));

About

The cache module of MToolkit framework.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages