You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
{
|
|
"LSET": {
|
|
"summary": "Set the value of an element in a list by its index",
|
|
"complexity": "O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1).",
|
|
"group": "list",
|
|
"since": "1.0.0",
|
|
"arity": 4,
|
|
"function": "lsetCommand",
|
|
"command_flags": [
|
|
"WRITE",
|
|
"DENYOOM"
|
|
],
|
|
"acl_categories": [
|
|
"LIST"
|
|
],
|
|
"key_specs": [
|
|
{
|
|
"flags": [
|
|
"RW",
|
|
"UPDATE"
|
|
],
|
|
"begin_search": {
|
|
"index": {
|
|
"pos": 1
|
|
}
|
|
},
|
|
"find_keys": {
|
|
"range": {
|
|
"lastkey": 0,
|
|
"step": 1,
|
|
"limit": 0
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"arguments": [
|
|
{
|
|
"name": "key",
|
|
"type": "key",
|
|
"key_spec_index": 0
|
|
},
|
|
{
|
|
"name": "index",
|
|
"type": "integer"
|
|
},
|
|
{
|
|
"name": "element",
|
|
"type": "string"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
|