brenno-duarte/apcu-oop

The simplest OOP wrapper for APCu functions

1.0.1 2024-08-14 16:26 UTC

This package is auto-updated.

Last update: 2025-03-14 17:35:59 UTC


README

The simplest OOP wrapper for APCu functions

Installing

composer require brenno-duarte/apcu-oop

How to use

Firstly, you must instantiate the APCu class.

use APCU\APCu;

$apcu = new APCu();

The methods available in this class are similar to those of the APCu functions.

Functions OOP
apcu_add() $apcu->add()
apcu_cache_info() $apcu->cacheInfo()
apcu_cas() $apcu->cas()
apcu_clear_cache() $apcu->clearCache()
apcu_dec() $apcu->decrease()
apcu_delete() $apcu->delete()
apcu_enabled() $apcu->enabled()
apcu_entry() $apcu->entry()
apcu_exists() $apcu->exists()
apcu_fetch() $apcu->fetch()
apcu_inc() $apcu->increase()
apcu_key_info() $apcu->keyInfo()
apcu_sma_info() $apcu->smaInfo()
apcu_store() $apcu->store()

License

MIT