capacity
async def capacity(name: str) -> int
| Param | Description |
|---|---|
| name | Name of the array |
Returns the capacity of the array. The capacity is the same as defined with create() and does not change.
This is in contrast to used() which changes as items are set and cleared.
When the value of used() == capacity() the array is full.
Array Type Differences
None
Raises
ResponseErrorif query failsnamedoes not exist
ValueErrorcaught before query is sentnameis empty