title: Laminas Cache config issue after updated to PHP 8.1 from zend3
body: <p>I work on a project which is recently updated to Laminas and PHP 8.1 from Zend3 and PHP 7.4.</p>
  <p>in config/autoload/global.php</p>
  <pre><code>  'caches' =&gt; require __DIR__ . '/caches.php',
  </code></pre>
  <p>and this is caches.php</p>
  <pre><code>$cacheDefault = [
      'adapter' =&gt; [
         'name'    =&gt; 'Memcached',
         'options' =&gt; [
          'servers' =&gt; Module::isRunningOnVM()
              ? ['127.0.0.1:11211']
              : Module::getMemcachedServersFromEnvironment(),
         ],
      ],
  ];
  
  return [
  
     'cache_instrument_manager_search' =&gt; array_merge_recursive(
         $cacheDefault,
         [
          'adapter' =&gt; [
              'options' =&gt; [
                  'namespace' =&gt; 'instrument_manager_search',
                  'ttl'       =&gt; 20,
              ],
          ],
         ]
      ),
  
    'cache_weekly' =&gt; array_merge_recursive(
         $cacheDefault,
         [
             'adapter' =&gt; [
                 'options' =&gt; [
                      'namespace' =&gt; 'weekly',
                     'ttl'       =&gt; 604800, // whole week
                 ],
             ],
         ]
      ),
    ];
  </code></pre>
  <p>It worked well in zend 3. but after updating to Laminas and PHP8.1 I got this error</p>
  <p>Laminas\ServiceManager\Exception\ServiceNotCreatedException</p>
  <p>File:</p>
  <pre><code>/project/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:620
  </code></pre>
  <p>Message:</p>
  <pre><code>Service with name &quot;cache_instrument_manager_search&quot; could not be created. Reason: Configuration must contain a &quot;adapter&quot; key.
  </code></pre>
  <p>I have changed it to</p>
  <pre><code>return [
  
     'cache_instrument_manager_search' =&gt; [
         'adapter' =&gt; 'Memcached',
         'options' =&gt; ['ttl' =&gt; 3600],
         'plugins' =&gt; [
             [
                 'name' =&gt; 'exception_handler',
                 'options' =&gt; [
                     'throw_exceptions' =&gt; false,
                  ],
              ],
          ],
      ]
  ];
  </code></pre>
  <p>But Still has this error
  Laminas\ServiceManager\Exception\ServiceNotFoundException</p>
  <p>File:</p>
  <pre><code>/project/vendor/laminas/laminas-servicemanager/src/ServiceManager.php:557
  </code></pre>
  <p>Message:</p>
  <pre><code>Unable to resolve service &quot;Memcached&quot; to a factory; are you certain you provided it during configuration?
  </code></pre>
  <p>I need help. I read documents in Laminas but still could not solve this.</p>