Package org.springmodules.cache.key

Examples of org.springmodules.cache.key.HashCodeCacheKeyGenerator


  public void testIsSingleton() {
    assertTrue(factoryBean.isSingleton());
  }

  public void testSetCacheKeyGenerator() {
    CacheKeyGenerator keyGenerator = new HashCodeCacheKeyGenerator();
    factoryBean.setCacheKeyGenerator(keyGenerator);

    assertSame(keyGenerator, factoryBean.getCachingInterceptor()
        .cacheKeyGenerator());
  }
View Full Code Here


      if (!successful) cache.cancelCacheUpdate(key);
    }
  }

  private CacheKeyGenerator defaultKeyGenerator() {
    return new HashCodeCacheKeyGenerator(true);
  }
View Full Code Here

TOP

Related Classes of org.springmodules.cache.key.HashCodeCacheKeyGenerator

Copyright © 2018 www.massapicom. 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.