for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package CleverStyle CMS
* @author Nazar Mokrynskyi <[email protected]>
* @copyright Copyright (c) 2016, Nazar Mokrynskyi
* @license MIT License, see license.txt
*/
namespace cs\Cache;
* Provides cache functionality based on APCu
class APCu extends _Abstract_with_namespace {
* @inheritdoc
protected function available_internal () {
return function_exists('apcu_fetch');
}
protected function get_internal ($item) {
return apcu_fetch($item);
protected function set_internal ($item, $data) {
return apcu_store($item, $data);
protected function del_internal ($item) {
return apcu_delete($item);
protected function increment_internal ($item) {
return apcu_inc($item);
protected function clean_internal () {
return apcu_clear_cache();