clc map
clc map get
Prints a single entry from the map as a key-value pair.
Usage:
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Optional |
Data type of the key. One of: |
string |
|
Optional |
Output format. Supported formats:
|
|
Example:
clc map set
Sets the given key-value entry pair in a map.
Usage:
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Required |
Value to set for the key. |
N/A |
|
Optional |
Data type of the key. One of: |
String |
|
Optional |
Data type of the value. One of: |
String |
|
Optional |
Duration in milliseconds after which the entry will expire and be evicted. It cannot be shorter than 1 second (1000 ms). |
N/A |
|
Optional |
Maximum time for this entry to stay idle in the map. It cannot be shorter than 1 second (1000 ms). |
N/A |
Example:
clc map entry-set
Gets all the entries of the specified map.
Usage:
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Optional |
Output format. Supported formats:
|
|
Example:
clc map remove
Deletes the value of a given key in a map and returns the key.
Usage:
Parameters:
Parameter | Required | Description | Default |
---|---|---|---|
|
Optional |
Name of the map. |
|
|
Required |
Key of the map entry. |
N/A |
|
Optional |
Data type of the key. One of: |
String |
|
Optional |
Output format. Supported formats:
|
|
Example: