besimple/memcached
Laravel-friendly Memcached integration that simplifies using the PHP Memcached extension for caching and session storage. Provides configuration helpers and adapter glue so your app can talk to Memcached servers with minimal setup.
besimple/memcached package (if functional) provides a Laravel-compatible wrapper for Memcached, a high-performance distributed memory object caching system. It could fit well in architectures requiring:
Cache contract (Illuminate\Contracts\Cache\Store), it could drop into the framework’s caching layer seamlessly. However, lack of maintenance raises doubts about compatibility with newer Laravel versions (e.g., 10.x).predis/predis (Redis) or php-memcached (native extension) are more mature. This package’s niche is unclear without active development.memcached cache driver in Laravel’s config/cache.php. Example:
'stores' => [
'memcached' => [
'driver' => 'memcached',
'servers' => [
['host' => '127.0.0.1', 'port' => 11211, 'weight' => 100],
],
'options' => [
Memcached::OPT_COMPRESSION => true,
],
],
],
league/flysystem-memcached or other Memcached-related packages. No composer constraints are visible.php-memcached or Redis.php-memcached or Redis?php-memcached directly.)Cache contract, integration is minimal (register driver in config/cache.php).php-memcached extension may be more reliable.memcached extension must be installed (pecl install memcached).predis, phpredis), pub/sub, and Laravel ecosystem support.database cache driver may suffice.php-memcached + custom Laravel cache driver.phpredis (recommended for long-term stability).config/cache.php to include the new driver.'default' => env('CACHE_DRIVER', 'memcached'),
'stores' => [
'memcached' => [
'driver' => 'memcached',
'servers' => [
['host' => env('MEMCACHED_HOST'), 'port' => env('MEMCACHED_PORT', 11211)],
],
],
],
php-memcached extension (not bundled with PHP)..env conventions (e.g., MEMCACHED_HOST).memcached extension.composer.json (with besimple/memcached).Cache::put(), Cache::get()).config/cache.php and .env.php-memcached + custom driver if critical.league/flysystem-memcached).php-memcached is likely faster.config/cache.php failover option) may not be leveraged by this package.php-memcached would require less ramp-up time.How can I help you explore Laravel packages today?