

package play.libs.jcache;

import play.Environment;

import javax.cache.CacheManager;
import javax.cache.Caching;

/**
 * JCache components
 */
public interface JCacheComponents {

    Environment environment();

    default CacheManager cacheManager() {
        return Caching.getCachingProvider(environment().classLoader()).getCacheManager();
    }

}
