anchor.diff:  ----
   
   For a complete list of distributed-cache attributes, refer to the https://wildscribe.github.io/[WildFly management model documentation]
  +
  +==== Scattered
  +
  +A scattered cache is a variation of a distributed cache that maintains 2 copies of a particular cache entry.
  +Consequently, it can only tolerate failure of a single node at a time.
  +Primary ownership of a cache entry is determined by the same mechanism used by a distributed cache,
  +while the backup copy is the node that last updated the entry.
  +
  +This design means that a scattered cache only requires 1 remote invocation to write a given cache entry, regardless of which node initiated the cache operation.
  +By comparison, a distributed cache (with 2 owners) uses 1 remote invocation to write a cache entry if and only if the primary owner initiated the cache operation, and otherwise requires 2 remote invocations.
  +
  +For more information about this cache type, refer to the http://infinispan.org/docs/stable/user_guide/user_guide.html#scattered_mode[the Infinispan documentation].
  +
  +To create a scattered cache:
  +
  +[source]
  +----
  +/subsystem=infinispan/cache-container=foo/scattered-cache=bar:add()
  +----
  +
  +For a complete list of scattered-cache attributes, refer to the https://wildscribe.github.io/[WildFly management model documentation]
   
   ==== Invalidation
   
   An invalidation cache is a special type of clustered cache that does not share state, but instead ensures that remote state is invalidated any time a given entry is updated locally.
   An invalidation cache requires a transport, as cache writes trigger invalidation on remote nodes on which the associated cache is running.
  +
  +For more information about this cache type, refer to the http://infinispan.org/docs/stable/user_guide/user_guide.html#invalidation_mode[the Infinispan documentation].
   
   To create an invalidation cache:
   
  
positive.code: 
  ==== Distributed
  
  A distributed cache stores a given cache entry on a fixed number of nodes in the cluster.
  Distributed caches utilize a consistent hash function to assign ownership of a given cache key.
  A distributed cache requires a transport, as cache writes are replicated to each owner, and cache reads from a non owner require a remote request.
  
  To create a distributed cache where a given entry is stored on 3 nodes:
  
  
negative.code: A local cache stores a given cache entry only on the local node.
  A local cache does not require a transport, as cache reads and writes are always local.
  
  For more information about this cache type, refer to the http://infinispan.org/docs/stable/user_guide/user_guide.html#local_mode[the Infinispan documentation].
  
  To create a local cache:
  
  [source]
  