A newer version of Hazelcast CLC is available.

View latest

clc set

Set commands are a group of set operations.

Usage:

clc set [command] [flags]

clc set clear

Deletes all entries of a set.

Usage:

clc set clear [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

--yes

Optional

Skip confirming the destroy operation.

false

Example:

clc set clear --name my-set

clc set add

Adds values to the given set.

Usage:

clc set add [values] [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

--value-type, -v

Optional

Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64

string

Example:

clc set add 1 2 3 4 --name my-set

clc set get-all

List all values in the given set.

Usage:

clc set get-all [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

Example:

clc set get-all --name my-set

clc set remove

Removes values from the given set.

Usage:

clc set remove [values] [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

--value-type, -v

Optional

Data type of the value. One of: string, bool, json, i8, i16, i32, i64, f32, f64

string

Example:

clc set remove 1 2 3 4 --name my-set

clc set size

Returns the size of the given set.

Usage:

clc set size [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

Example:

clc set size --name my-set

clc set destroy

Destroys a set. This command will delete the set and the data in it will not be available anymore.

Usage:

clc set destroy [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the set.

default

--yes

Optional

Skip confirming the destroy operation.

false

Example:

clc set destroy --name my-set