/
githubmirror
/
redis
Обзор
Документация
Войти
/
githubmirror
/
redis
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
unstable
src/commands/arring.json
57 строк
2 KB
Salvatore Sanfilippo
Implement the new Redis Array type (#15162)
13 май 2026, 19:56
Не верифицирован
13 май 2026, 19:56
0d95764
Код
Авторство
О чём код?
{ "ARRING": { "summary": "Inserts values into a ring buffer of specified size, wrapping and truncating as needed.", "complexity": "O(M) normally, O(N+M) on ring resize, where N is the maximum of the old and new ring size and M is the number of inserted values", "group": "array", "since": "8.8.0", "arity": -4, "function": "arringCommand", "command_flags": [ "WRITE", "DENYOOM" ], "acl_categories": [ "ARRAY" ], "key_specs": [ { "flags": [ "RW", "UPDATE" ], "begin_search": { "index": { "pos": 1 } }, "find_keys": { "range": { "lastkey": 0, "step": 1, "limit": 0 } } } ], "reply_schema": { "description": "The last index where a value was inserted.", "type": "integer" }, "arguments": [ { "name": "key", "type": "key", "key_spec_index": 0 }, { "name": "size", "type": "integer" }, { "name": "value", "type": "string", "multiple": true } ] } }