Table
class Table implements Iterator, ArrayAccess, Countable (View source)
Constants
TYPE_INT |
|
TYPE_STRING |
|
TYPE_FLOAT |
|
Properties
int | $size | ||
int | $memorySize |
Methods
No description
No description
No description
No description
No description
No description
No description
This method has an alias of \Swoole\Table::delete().
Alias of method \Swoole\Table::del().
This method has an alias of \Swoole\Table::exist().
Alias of method \Swoole\Table::exists().
No description
No description
No description
No description
No description
No description
No description
No description
No description
Whether or not an offset exists.
Returns the value at specified offset.
Assigns a value to the specified offset.
Unsets an offset.
No description
Details
__construct(int $table_size, float $conflict_proportion = 0.2)
No description
bool
column(string $name, int $type, int $size = 0)
No description
bool
create()
No description
bool
destroy()
No description
bool
set(string $key, array $value)
No description
array|false
stats()
No description
mixed
get(string $key, string $field = null)
No description
bool
del(string $key)
This method has an alias of \Swoole\Table::delete().
bool
delete(string $key)
Alias of method \Swoole\Table::del().
bool
exists(string $key)
This method has an alias of \Swoole\Table::exist().
bool
exist(string $key)
Alias of method \Swoole\Table::exists().
int
incr(string $key, string $column, mixed $incrby = 1)
No description
int
decr(string $key, string $column, mixed $decrby = 1)
No description
int
getSize()
No description
int
getMemorySize()
No description
mixed
current()
No description
mixed
key()
No description
void
next()
No description
void
rewind()
No description
bool
valid()
No description
bool
offsetExists(TKey $offset)
Whether or not an offset exists.
mixed
offsetGet(TKey $offset)
Returns the value at specified offset.
void
offsetSet(TKey $offset, TValue $value)
Assigns a value to the specified offset.
void
offsetUnset(TKey $offset)
Unsets an offset.
int
count()
No description