netzdenke / phpmcached
PHP Memcached adapter with cache groups
Installs: 352
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/netzdenke/phpmcached
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-25 22:24:39 UTC
README
PHPMCached is a PHP Memcached adapter with support for cache groups.
Requirements
- PHP 5.3 or later
- PHP Memcached extension
Usage
Install the latest version with composer require netzdenke/phpmcached
<?php $cache = \PHPMCached\PHPMCached::getInstance('application_name'); $cache->addServer('127.0.0.1'); $cacheKey = $cache->getCacheKey('foo'); $cache->set($cacheKey, 'value', 'cache_group', \PHPMCached\PHPMCached::EXPIRATION_HOUR); $value = $cache->get($cacheKey); $cache->deleteCacheGroup('cache_group');
License
PHPMCached is licensed under the MIT License - see the LICENSE file for details