anchor.diff:  WARNING: *This is still a work in progress*. While it represents the API as it exists today, the final version will be represented in the Ehcache 3.0 OSS Beta.
   
   === Configuring it all in Java
  +
  +==== Managed cache
   
   [source,java,indent=0]
   ----
  
positive.code:     `LocalPersistenceService` with your `CacheManager`, which you can do by providing the location where
      data should be stored on disk to the `CacheManagerBuilder.persistence(String)` static method.
  <2> You define a resource pool for the disk.
  
  [source,java,indent=0]
  ----
  include::../../impl/src/test/java/org/ehcache/GettingStarted.java[tag=offheapCacheManager]
  ----
  
  <1> If you wish to use off-heap, you'll have to define resource pool, giving the memory size you want to allocate.
  
  === It wouldn't be Java without _some_ XML
  
  
negative.code: <2> As there is nothing that manages them, it is up to you to `StandaloneCache.init()` them, prior to using them.
  <3> You can use the Standalone cache exactly as a managed cache
  <4> In the same vein, a `StandaloneCache` requires you to `StandaloneCache.close()` it explicitly. If you would also use
      managed caches simultaneously, the `CacheManager.close()` operation would not impact the Standalone cache.
  
  ==== Off-heap
  
  [source,java,indent=0]
  ----
  include::../../impl/src/test/java/org/ehcache/GettingStarted.java[tag=offheapCacheManager]
  ----
  
  <1> If you wish to use off-heap, you'll have to define resource pool, giving the memory size you want to allocate.
  
  Do not forget to define in the java options the -XX:MaxDirectMemorySize option, according to the off-heap size you intend to use.
  
  ==== Disk persistence
  
  [source,java,indent=0]
  ----
  