src/Viserio/Component/Cache/Provider/CacheServiceProvider.php
public function getFactories(): array
    {
        return [
            CacheManagerContract::class => [self::class, 'createCacheManager'],
            CacheManager::class         => static function (ContainerInterface $container): CacheManagerContract {
                return $container->get(CacheManagerContract::class);
            },
            'cache' => static function (ContainerInterface $container): CacheManagerContract {
                return $container->get(CacheManagerContract::class);
            },
            CacheItemPoolInterface::class => [self::class, 'registerDefaultCache'],
            CacheInterface::class         => [self::class, 'registerDefaultCache'],
            'cache.store'                 => static function (ContainerInterface $container) {
                return $container->get(CacheItemPoolInterface::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            CacheManagerContract::class => [self::class, 'createCacheManager'],
            CacheManager::class         => static function (ContainerInterface $container): CacheManagerContract {
                return $container->get(CacheManagerContract::class);
            },
            'cache' => static function (ContainerInterface $container): CacheManagerContract {
                return $container->get(CacheManagerContract::class);
            },
            CacheItemPoolInterface::class => [self::class, 'registerDefaultCache'],
            CacheInterface::class         => [self::class, 'registerDefaultCache'],
            'cache.store'                 => static function (ContainerInterface $container) {
                return $container->get(CacheItemPoolInterface::class);
            },
        ];
    }
{@inheritdoc}