brenno-duarte / apcu-oop
The simplest OOP wrapper for APCu functions
Installs: 18
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/brenno-duarte/apcu-oop
Requires
- php: ^8.2
Suggests
- ext-apcu: To use APCu cache driver
This package is auto-updated.
Last update: 2025-10-14 19:04:32 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