getCache() - JPA EntityManagerFactory's method

Access the cache that is associated with the entity manager factory (the "second level cache").
Returns:
instance of the Cache interface
Throws:
IllegalStateException - if the entity manager factory has been closed
Since:
JPA 2.0