Skip to main content

Container operations

Create a new container​

To create a new container the following command can be executed:

./rostore-cli create-container -c container-name [--max-size 100000] [--max-ttl p10d] [--shard-number 10] [-p profile]

Replace container-name with the container identifier, both max-size and max-ttl are optional. If max-size is provided, the container can only reach the given size (in bytes). If max-ttl is provided - it specifies how long the keys are persisted in the created container. Additionally the number of container's shard can be provided. The number of shards specify the partitioning of the container. If this parameter is omited a container with 5 shards is created.

Delete a container​

The following operation will remove a container:

./rostore-cli remove-container -c container-name [-p profile]

List containers​

To get the list of the containers the following command is used:

./rostore-cli list-containers [-p profile]