-
1. Re: Create Cache through Command Line
rvansa Feb 10, 2016 2:58 AM (in response to stejas7)Is the CLI chapter http://infinispan.org/docs/8.1.x/user_guide/user_guide.html#_create in the user guide insufficient in any way? You need to define a configuration template (in regular XML configuration) and later you can create caches that have this configuration.at runtime (using CLI).
I hope those 4 exclamation marks are not necessary.
-
2. Re: Create Cache through Command Line
nadirx Feb 11, 2016 4:13 AM (in response to rvansa)To create a cache using an existing configuration in domain mode:
$ ./bin/ispn-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
[domain@localhost:9990 /] cd profile=clustered/subsystem=datagrid-infinispan/cache-container=clustered
[domain@localhost:9990 cache-container=clustered] ./distributed-cache=mynewcache:add(configuration=default)
{
"outcome" => "success",
"result" => undefined,
"server-groups" => {"main-server-group" => {"host" => {"master" => {
"server-one" => {"response" => {"outcome" => "success"}},
"server-two" => {"response" => {"outcome" => "success"}}
}}}}
}
[domain@localhost:9990 cache-container=clustered]
-