Factory method to create a new cache instance from the passed configuration.
public static getCacheImpl ( AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface $persistenceUnit, AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\CacheConfigurationNodeInterface $cacheConfiguration ) : |
||
$persistenceUnit | AppserverIo\Appserver\Core\Api\Node\PersistenceUnitNodeInterface | The persistence unit node |
$cacheConfiguration | AppserverIo\Appserver\PersistenceContainer\Doctrine\V2\CacheFactories\CacheConfigurationNodeInterface | The cache configuration |
return | The cache instance |