## Provided Capabilities (1)

Name | Dynamic | Other provider points
--- | --- | ---
org.wildfly.clustering.infinispan.cache-configuration.memory | true | /subsystem=infinispan/cache-container=*/distributed-cache=*/memory=off-heap /subsystem=infinispan/cache-container=*/scattered-cache=*/memory=heap /subsystem=infinispan/cache-container=*/local-cache=*/memory=off-heap /subsystem=infinispan/cache-container=*/invalidation-cache=*/memory=off-heap /subsystem=infinispan/cache-container=*/scattered-cache=*/memory=off-heap /subsystem=infinispan/cache-container=*/local-cache=*/memory=heap /subsystem=infinispan/cache-container=*/distributed-cache=*/memory=heap /subsystem=infinispan/cache-container=*/replicated-cache=*/memory=heap /subsystem=infinispan/cache-container=*/invalidation-cache=*/memory=heap

## Attributes (2)

- size - Eviction threshold, as defined by the size unit.

  Type | LONG
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | resource-services
  Min | 1
  Max | 9223372036854775807
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "LONG"
          },
          "description" : "Eviction threshold, as defined by the size unit.",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "min" : 1,
          "max" : 9223372036854775807,
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "resource-services",
          "capability-reference" : null
      }

- size-unit - The unit of the eviction threshold.

  Type | STRING
  Default Value | ENTRIES
  Is the attribute nillable? | true
  Does the attribute allow expression? | true
  Where is the attribute stored? | configuration
  Access Type | read-write
  Is restarted required? | resource-services
  Allowed Values | BYTES GiB KiB MB KB MiB GB TiB ENTRIES TB
  Stability Level | default
  Raw DMR model |
      {
          "type" : {
              "TYPE_MODEL_VALUE" : "STRING"
          },
          "description" : "The unit of the eviction threshold.",
          "expressions-allowed" : true,
          "required" : false,
          "nillable" : true,
          "default" : "ENTRIES",
          "allowed" : [
              "ENTRIES",
              "BYTES",
              "KB",
              "KiB",
              "MB",
              "MiB",
              "GB",
              "GiB",
              "TB",
              "TiB"
          ],
          "stability" : "default",
          "access-type" : "read-write",
          "storage" : "configuration",
          "restart-required" : "resource-services",
          "capability-reference" : null
      }

## Operations (2)

- add - Adds a memory configuration element to the cache.

  Request Parameter | Type | Required | Expressions Allowed | Default value | Description
  --- | --- | --- | --- | --- | ---
  size | LONG | false | true |  | Eviction threshold, as defined by the size unit.
  size-unit | STRING | false | true | ENTRIES | The unit of the eviction threshold.

  Raw DMR model |
      {
          "operation-name" : "add",
          "description" : "Adds a memory configuration element to the cache.",
          "request-properties" : {
              "size" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "LONG"
                  },
                  "description" : "Eviction threshold, as defined by the size unit.",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "min" : 1,
                  "max" : 9223372036854775807,
                  "stability" : "default"
              },
              "size-unit" : {
                  "type" : {
                      "TYPE_MODEL_VALUE" : "STRING"
                  },
                  "description" : "The unit of the eviction threshold.",
                  "expressions-allowed" : true,
                  "required" : false,
                  "nillable" : true,
                  "default" : "ENTRIES",
                  "allowed" : [
                      "ENTRIES",
                      "BYTES",
                      "KB",
                      "KiB",
                      "MB",
                      "MiB",
                      "GB",
                      "GiB",
                      "TB",
                      "TiB"
                  ],
                  "stability" : "default"
              }
          },
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "runtime-only" : false
      }

- remove - Removes an eviction configuration element from the cache.

  Raw DMR model |
      {
          "operation-name" : "remove",
          "description" : "Removes an eviction configuration element from the cache.",
          "request-properties" : {},
          "reply-properties" : {},
          "stability" : "default",
          "read-only" : false,
          "restart-required" : "resource-services",
          "runtime-only" : false
      }

## Galleon Features

Galleon features are to be used when creating Galleon feature-packs.

- subsystem.infinispan.cache-container.replicated-cache.memory.off-heap

      <feature spec="subsystem.infinispan.cache-container.replicated-cache.memory.off-heap">
        <param name="cache-container" value="{resource name}"/>
        <param name="replicated-cache" value="{resource name}"/>
        <param name="size" value="{value}"/>
        <param name="size-unit" value="{value}"/>
      <feature/>