• Documentation
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • Documentation
  • Reporter: gbevin
  • June 25, 2010
  • 0
  • Watchers: 0
  • July 27, 2012
  • August 29, 2010

Description

Per EHC-736 the cache manager configuration can now fully be fluent and TerracottaConfigConfiguration has been renamed to GlobalTerracottaConfiguration so that it’s clearer for users since there’s also TerracottaConfigConfiguration.

Example:

 Configuration configuration = new Configuration()
   .terracotta(new GlobalTerracottaConfiguration().url("localhost:9510"))
   .defaultCache(new CacheConfiguration("defaultCache", 100))
   .cache(new CacheConfiguration("example", 100)
     .timeToIdleSeconds(5)
     .timeToLiveSeconds(120)
     .terracotta(new TerracottaConfiguration()));

Comments

gluck 2010-08-29

Added to Terracotta chapter.