| 限定符和类型 | 常量字段 | 值 |
|---|---|---|
public static final double |
sheetSize |
65536.0 |
| 限定符和类型 | 常量字段 | 值 |
|---|---|---|
public static final String |
MAGIC |
"sunQueue" |
public static final int |
VERSION |
3 |
| 限定符和类型 | 常量字段 | 值 |
|---|---|---|
public static final int |
DATA_START_POSITION |
24 |
public static final byte |
WRITE_FULL |
3 |
public static final byte |
WRITE_SUCCESS |
1 |
| 限定符和类型 | 常量字段 | 值 |
|---|---|---|
public static final int |
INDEX_LIMIT_LENGTH |
28 |
| 限定符和类型 | 常量字段 | 值 |
|---|---|---|
public static final String |
RPOP_BATCH |
"local key = KEYS[1]\nlocal maxnum = ARGV[1]\nlocal count = redis.call(\'llen\',key)\nif tonumber(count) == 0 then\n return nil\nend\nif tonumber(count) < tonumber(maxnum) then\n maxnum = tonumber(count)\nend\nlocal result = {}\nfor i = 1,tonumber(maxnum) do\n local val = redis.call(\'rpop\',key)\n if val == nil then\n return result\n else\n result[i] = val\n end\nend\nreturn result" |
Copyright © 2022. All rights reserved.