Examples of Cache


Examples of com.impetus.kundera.cache.Cache

        // go to second-level cache
        if (o == null)
        {
            LOG.debug("Reading from L2 >> " + key);
            Cache c = (Cache) getL2Cache();
            if (c != null)
            {
                o = (T) c.get(key);
                if (o != null)
                {
                    LOG.debug("Found item in second level cache!");
                }
            }

Examples of com.jada.jpa.entity.Cache

    logger.info("Total number of cache entries removed = " + count);
  }
 
  public static Cache load(String siteId, Long cacheId) throws SecurityException, Exception {
      EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
    Cache cache = (Cache) em.find(Cache.class, cacheId);
    if (!cache.getSiteId().equals(siteId)) {
      throw new SecurityException("");
    }
    return cache;
  }

Examples of com.lixia.rdp.Cache

     *
     * @param channels Virtual channels to be used in connection
     */
    public ARDP5(VChannels channels) {
        this.SecureLayer = new Secure(channels);
        ARDP5.cache = new Cache();
        RDPConnection.conf.secure = SecureLayer;
        this.orders = new OrdersJPanel();
        orders.registerCache(cache);
        wi = new WrappedImage(RDPConnection.conf.width, RDPConnection.conf.height, BufferedImage.TYPE_INT_RGB);
    }

Examples of com.opensymphony.oscache.base.Cache

  }

  public void testOnGetFromCacheWhenEntryIsStale() {
    setUpCacheAdministrator();

    Cache cache = cacheAdministrator.getCache();

    cache.putInCache(CACHE_KEY, "An Object",
        new EntryRefreshPolicy() {
          /** force refresh */
          public boolean needsRefresh(CacheEntry cacheEntry) {
            return true;
          }

Examples of com.qspin.qtaste.datacollection.collection.Cache

        try {
            final long beginTime_ms = System.currentTimeMillis(); // begin time
            long elapsedTime_ms = 0; // total elapsed time
            final long checkTimeInterval_ms = 100; // check every 100 ms

            Cache cache = CacheImpl.getInstance();

            LinkedList<Object> currentValues = new LinkedList<Object>();
            String mismatchVariableName = null;
            Object mismatchVariableValue = null;
            Object mismatchVariableExpectedValue = null;

            do {
                // Get current values and check if they match the expected values
                currentValues.clear();
                Set<Map.Entry<String, Object>> list = expectedValues.entrySet();
                Iterator<Map.Entry<String, Object>> i = list.iterator();
                boolean allVariablesMatch = true;
                while (i.hasNext()) {
                    Map.Entry<String, Object> entry = i.next();
                    String key = entry.getKey();
                    Object expected = entry.getValue();

                    // get current value and store it
                    Object currentValue;
                    try {
                        currentValue = cache.getLast(key).getValue();
                    } catch (QTasteTestFailException e) {
                        currentValue = null;
                    }
                    currentValues.add(currentValue);

Examples of com.salas.bb.utils.uif.images.Cache

        // Configure Mac OS X dock icon (we had problems with JWS dock icon: ugly and cannot be badged)
        if (isMac()) OSXSupport.setApplicationIcon();

        // Images cache
        Cache imagesCache = new Cache(new File(getContextPath() + "cache"), 20000000);
        ImageFetcher.setCache(imagesCache);

        // Stylesheets
        try
        {

Examples of com.scooterframework.cache.Cache

   *
   * @param name  name of the cache
   * @return the cache associated with the name
   */
  public Cache getCache(String name) {
    Cache cache = chm.get(name);
    if (cache == null) {
      Ehcache ehcache = cacheManager.getEhcache(name);
      if (ehcache == null) {
        log.debug("There is no cache registered with name '" + name
          + "' in ehcache.xml. Will create a cache for it.");

Examples of com.skyline.common.cache.annotation.Cache

  private void parseMethodAnnotation(Annotation[] annotations) {
    for (Annotation annotation : annotations) {
      Class<? extends Annotation> annotationType = annotation.annotationType();
      if (annotationType.equals(Cache.class)) {
        Cache cache = (Cache) annotation;
        isCachable = true;
        keyPattern = cache.keyPattern();
        expire = cache.expire();
        isPagination = cache.pagination();
        categoryType = cache.type();
        isGenericCache = isCategoryTypeGeneric(categoryType);
      }
      if (annotationType.equals(CacheDelete.class)) { // 如categoryType等可能重复的数据以删除为准
        isCacheDelete = true;
        CacheDelete cacheDelete = (CacheDelete) annotation;

Examples of com.skyline.energy.annotation.Cache

  private List<CacheDeleteDefinition> cacheDeleteDefinitions;
  private List<VersionUpdateDefinition> versionUpdateDefinitions;

  public CacheDefinitionCollection(Method method) throws DaoGenerateException {

    Cache cache = method.getAnnotation(Cache.class);
    if (cache != null) {
      cacheDefinition = new CacheDefinition(cache, method);
    }

    CacheDelete cacheDelete = method.getAnnotation(CacheDelete.class);

Examples of com.skyline.energy.cache.Cache

      LOGGER.debug("创建缓存KEY失败,不进行缓存!");
      return cacheResult;
    }
    cacheResult.setKey(key);

    Cache cache = cacheManager.getCache(cacheDefinition.getPool());
    cacheResult.setCache(cache);

    CacheObject oldItem = (CacheObject) cache.get(key);
    LOGGER.debug("从" + key + "获取缓存对象:" + oldItem);
    if (oldItem != null) {
      return compareVersionKey(cacheDefinition, cacheResult, oldItem, args);
    }
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.