Examples of cacheExists()


Examples of net.sf.ehcache.CacheManager.cacheExists()

    try
    {
      final CacheManager manager = getCacheManager();
      synchronized(manager)
      {
        if (manager.cacheExists(FACTORY_CACHE_NAME) == false)
        {
          final Cache libloaderCache = new Cache(FACTORY_CACHE_NAME,   // cache name
                                                 500,         // maxElementsInMemory
                                                 false,       // overflowToDisk
                                                 false,       // eternal
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

           
            final CacheManager cacheManager = EhCacheFacade.this.cacheManager;
            final Log logger = EhCacheFacade.this.logger;

            try {
                if (cacheManager.cacheExists(name)) {
                    cache = cacheManager.getCache(name);
                   
                    if (logger.isDebugEnabled()) {
                        logger.debug("Using existing EhCache for '" + name + "'");
                    }
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

     * @return {@link Cache}
     */
    public Ehcache initializeCache() {
        CacheManager cacheManager = getCacheManagerFactory().getInstance();
        Ehcache cache;
        if (cacheManager.cacheExists(config.getCacheName())) {
            if (LOG.isTraceEnabled()) {
                LOG.trace("Found an existing cache: {}", config.getCacheName());
                LOG.trace("Cache {} currently contains {} elements",
                        config.getCacheName(),
                        cacheManager.getEhcache(config.getCacheName()).getSize());
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

    try
    {
      final CacheManager manager = getCacheManager();
      synchronized(manager)
      {
        if (manager.cacheExists("libloader-data") == false)
        {
          manager.addCache("libloader-data");
        }
        return new EHResourceDataCache(manager.getCache("libloader-data"));
      }
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

    try
    {
      final CacheManager manager = getCacheManager();
      synchronized(manager)
      {
        if (manager.cacheExists("libloader-bundles") == false)
        {
          manager.addCache("libloader-bundles");
        }
        return new EHResourceBundleDataCache(manager.getCache("libloader-bundles"));
      }
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

    try
    {
      final CacheManager manager = getCacheManager();
      synchronized(manager)
      {
        if (manager.cacheExists("libloader-factory") == false)
        {
          manager.addCache("libloader-factory");
        }
        return new EHResourceFactoryCache(manager.getCache("libloader-factory"));
      }
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

     * @return {@link Cache}
     */
    public Ehcache initializeCache() {
        CacheManager cacheManager = getCacheManagerFactory().getInstance();
        Cache cache;
        if (cacheManager.cacheExists(config.getCacheName())) {
            if (LOG.isTraceEnabled()) {
                LOG.trace("Found an existing cache: {}", config.getCacheName());
                LOG.trace("Cache {} currently contains {} elements",
                        config.getCacheName(),
                        cacheManager.getCache(config.getCacheName()).getSize());
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

     * @return {@link Cache}
     */
    public Ehcache initializeCache() {
        CacheManager cacheManager = getCacheManagerFactory().getInstance();
        Cache cache;
        if (cacheManager.cacheExists(config.getCacheName())) {
            if (LOG.isTraceEnabled()) {
                LOG.trace("Found an existing cache: {}", config.getCacheName());
                LOG.trace("Cache {} currently contains {} elements",
                        config.getCacheName(),
                        cacheManager.getCache(config.getCacheName()).getSize());
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

     * @return {@link Cache}
     */
    public Ehcache initializeCache() {
        CacheManager cacheManager = getCacheManagerFactory().getInstance();
        Ehcache cache;
        if (cacheManager.cacheExists(config.getCacheName())) {
            if (LOG.isTraceEnabled()) {
                LOG.trace("Found an existing cache: {}", config.getCacheName());
                LOG.trace("Cache {} currently contains {} elements",
                        config.getCacheName(),
                        cacheManager.getEhcache(config.getCacheName()).getSize());
View Full Code Here

Examples of net.sf.ehcache.CacheManager.cacheExists()

  }

  public void remove() {
    setClassLoader();
    CacheManager singletonManager = CacheManager.getInstance();
    if(singletonManager.cacheExists(cacheName))
      singletonManager.removeCache(cacheName);
   
  }

 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.