- Issue created by @Sivaji_Ganesh_Jojodae
I'm running php8.1-memcached version (3.1.5+2.2.0-14.1).
1. Enable the memcache and memcache_storage modules.
2. Add the following to settings.php
$settings['cache']['default'] = 'cache.backend.memcache_storage';
$settings['memcache_storage']['memcached_servers'] = ['localhost:11211' => 'default'];
$settings['cache']['bins']['toolbar'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['menu'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['entity'] = 'cache.backend.memcache_storage';
$settings['cache']['bins']['default'] = 'cache.backend.memcache_storage';
$settings['memcache_storage']['persistent_connection'] = FALSE;
3. drush cr
PHP Fatal error: Uncaught TypeError: Memcached::setMulti(): Argument #2 ($expiration) must be of type int, int given in modules/contrib/memcache_storage/src/DrupalMemcached.php:136
Active
2.0
Code