CREATE(1)
========
:doctype: manpage


NAME
----
create - creates caches and counters on ${infinispan.brand.name} servers.


SYNOPSIS
--------
*create cache* ['OPTIONS'] `CACHE_NAME` [`CONFIGURATION`]

*create counter* ['OPTIONS'] `COUNTER_NAME`


CREATE CACHE OPTIONS
--------------------
*-c, --configuration*='CONFIGURATION'::
Specifies a configuration as a string in XML, JSON or YAML format. Mutually exclusive with `-f`, `-t` and the configuration argument.

*-f, --file*='FILE'::
Specifies a configuration file in XML, JSON or YAML format. Mutually exclusive with `-c`, `-t` and the configuration argument.

*-t, --template*='TEMPLATE'::
Specifies a configuration template. Use tab autocompletion to see available templates. Mutually exclusive with `-c`, `-f` and the configuration argument.

*-v, --volatile*='[true|false]'::
Specifies whether the cache is persistent or volatile. The default is false.


CREATE COUNTER OPTIONS
----------------------
*-t, --type*='[weak|strong]'::
Specifies if the counter is weak or strong.

*-s, --storage*='[PERSISTENT|VOLATILE]'::
Specifies whether the counter is persistent or volatile.

*-c, --concurrency-level*='nnn'::
Sets the concurrency level of the counter.

*-i, --initial-value*='nnn'::
Sets the initial value of the counter.

*-l, --lower-bound*='nnn'::
Sets the lower bound of a *strong* counter.

*-u, --upper-bound*='nnn'::
Sets the upper bound of a *strong* counter.


EXAMPLES
--------
`create cache --template=org.infinispan.DIST_SYNC mycache` +
Creates a cache named `mycache` from the `DIST_SYNC` template.

`create counter --initial-value=3 --storage=PERSISTENT --type=strong cnt_a` +
Creates a strong counter named `cnt_a`.


SEE ALSO
--------
drop(1)
