danog\MadelineProto\Db\RedisArray
Author: Daniil Gentili daniil@daniil.it
Redis database backend.
Method list:
initStartup()
initConnection(\danog\MadelineProto\Settings\Database\Redis $settings)
set(string $index)
getArrayCopy(): \Amp\Promise<array>
count(): \Promise<int> The number of elements or public properties in the associated array or object, respectively.
clear()
getTable()
setTable()
isset(mixed $key): \Promise<bool> true if the offset exists, otherwise false
getInstance(\danog\MadelineProto\Db\DbArray|array|null $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings)
Methods:
initStartup()
Initialize on startup.
initConnection(\danog\MadelineProto\Settings\Database\Redis $settings)
Initialize connection.
Parameters:
$settings
:\danog\MadelineProto\Settings\Database\Redis
See also:
set(string $index)
Set value for an offset.
Parameters:
$index
:string
The index to set for.
getArrayCopy(): \Amp\Promise<array>
Get array copy.
See also:
\Amp\Promise
`count(): \Promise The number of elements or public properties in the associated
array or object, respectively.`
Count elements.
Return value: The number of elements or public properties in the associated array or object, respectively.
clear()
Clear all elements.
getTable()
Get the value of table.
setTable()
Set the value of table.
isset(mixed $key): \Promise<bool> true if the offset exists, otherwise false
Check if key isset.
Parameters:
$key
:mixed
Return value: true if the offset exists, otherwise false
getInstance(\danog\MadelineProto\Db\DbArray|array|null $previous, \danog\MadelineProto\Settings\Database\DatabaseAbstract $settings)
Parameters:
$previous
:\danog\MadelineProto\Db\DbArray|array|null
$settings
:\danog\MadelineProto\Settings\Database\DatabaseAbstract
Fully typed return value:
\Amp\Promise<static>
See also:
\danog\MadelineProto\Db\DbArray
: DB array interface.\danog\MadelineProto\Settings\Database\DatabaseAbstract
: Base class for database backends.\Amp\Promise
Generated by danog/phpdoc