key-value

nim key-value

work with key-value store

nim key-value clean

Clears the Key Value Store, be cautious!

Clears the Key Value Store, be cautious!
USAGE
$ nim key-value clean
OPTIONS
-f, --force Just do it, omitting confirmatory prompt
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
ALIASES
$ nim kv clean

See code: src/commands/key-value/clean.ts

nim key-value del KEY

Removes the specified keys and returns number of keys that were removed. A key is ignored if it does not exist

Removes the specified keys and returns number of keys that were removed. A key is ignored if it does not exist
USAGE
$ nim key-value del KEY
ARGUMENTS
KEY The key to be deleted
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
ALIASES
$ nim key-value delete

See code: src/commands/key-value/del.ts

nim key-value expire KEY TTL

Sets the specified ttl value for the specified key

Sets the specified ttl value for the specified key
USAGE
$ nim key-value expire KEY TTL
ARGUMENTS
KEY The key to be added at
TTL The ttl value to be set
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
ALIASES
$ nim kv expire

See code: src/commands/key-value/expire.ts

nim key-value get KEY

Get Value for a Key

Get Value for a Key
USAGE
$ nim key-value get KEY
ARGUMENTS
KEY The key for which value is to be retrieved
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
ALIASES
$ nim kv get

See code: src/commands/key-value/get.ts

nim key-value getMany [KEYPREFIX] [STARTINDEX] [COUNT]

Gets values for given Keys

Gets values for given Keys
USAGE
$ nim key-value getMany [KEYPREFIX] [STARTINDEX] [COUNT]
ARGUMENTS
KEYPREFIX The key for which value is to be retrieved
STARTINDEX The index to start at
COUNT The count to run to from start
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
ALIASES
$ nim kv getMany
$ nim kv getmany

See code: src/commands/key-value/getMany.ts

nim key-value list [PREFIX]

Lists Keys from Key Value Store

Lists Keys from Key Value Store
USAGE
$ nim key-value list [PREFIX]
ARGUMENTS
PREFIX Prefix to match keys against
OPTIONS
-j, --json Displays output in JSON form
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
--namespace=namespace The namespace to list keys from (current namespace if omitted)
ALIASES
$ nim kv list

See code: src/commands/key-value/list.ts

nim key-value llen KEY

Returns the length of the list stored at key.

Returns the length of the list stored at key.
If a key does not exist, it is interpreted as an empty list and 0 is returned.
An error is returned when the value stored at key is not a list.
USAGE
$ nim key-value llen KEY
ARGUMENTS
KEY The key to be queried for length
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
DESCRIPTION
If a key does not exist, it is interpreted as an empty list and 0 is returned.
An error is returned when the value stored at key is not a list.
ALIASES
$ nim kv llen

See code: src/commands/key-value/llen.ts

nim key-value lrange KEY START STOP

Returns the specified elements of the list stored at key.

Returns the specified elements of the list stored at key.
The offsets start and stop are zero-based indexes, with 0 being the first element of the list,
1 being the next element and so on.
USAGE
$ nim key-value lrange KEY START STOP
ARGUMENTS
KEY The key to be queried
START The index to start
STOP The index to stop
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
DESCRIPTION
The offsets start and stop are zero-based indexes, with 0 being the first element of the list,
1 being the next element and so on.
ALIASES
$ nim kv lrange

See code: src/commands/key-value/lrange.ts

nim key-value rpush KEY VALUE

Insert all the specified values at the tail of the list stored at key.

Insert all the specified values at the tail of the list stored at key.
It is created as an empty list before performing the push operation if the key does not exist.
An error is returned when key holds such a value that is not a list
USAGE
$ nim key-value rpush KEY VALUE
ARGUMENTS
KEY The key to be added at
VALUE The value to be added
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
DESCRIPTION
It is created as an empty list before performing the push operation if the key does not exist.
An error is returned when key holds such a value that is not a list
ALIASES
$ nim kv rpush

See code: src/commands/key-value/rpush.ts

nim key-value set KEY VALUE

Sets the specified value at the specified key

Sets the specified value at the specified key
USAGE
$ nim key-value set KEY VALUE
ARGUMENTS
KEY The key to be added at
VALUE The value to be added
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace
--help Show help
ALIASES
$ nim kv set
$ nim kv add

See code: src/commands/key-value/set.ts

nim key-value setMany [KEYPREFIX] [VALUEPREFIX] [STARTINDEX] [COUNT]

Set Value for a Key

Set Value for a Key
USAGE
$ nim key-value setMany [KEYPREFIX] [VALUEPREFIX] [STARTINDEX] [COUNT]
ARGUMENTS
KEYPREFIX The key to be set at
VALUEPREFIX The value to be set
STARTINDEX The index to start at
COUNT The count to run to from start
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
ALIASES
$ nim kv setMany
$ nim kv setmany

See code: src/commands/key-value/setMany.ts

nim key-value ttl KEY

Get ttl value for a Key

Get ttl value for a Key
USAGE
$ nim key-value ttl KEY
ARGUMENTS
KEY The key for which ttl value is to be retrieved
OPTIONS
-v, --verbose Greater detail in error messages
--apihost=apihost API host of the namespace to list keys from
--help Show help
ALIASES
$ nim kv ttl

See code: src/commands/key-value/ttl.ts