2.2 KiB
danog\MadelineProto\Settings\Database\Redis
Author: Daniil Gentili daniil@daniil.it
Redis backend settings.
Method list:
getDatabase(): int
setDatabase(int $database): self
getUri(): string
setUri(string $uri): self
getKey(): string
getCacheTtl(): int
setCacheTtl(int|string $cacheTtl): self
getPassword(): string
setPassword(string $password): self
hasChanged(): bool
Methods:
getDatabase(): int
Get database number.
Generated by danog/phpdoc
setDatabase(int $database): self
Set database number.
Parameters:
$database
:int
Database number.
Generated by danog/phpdoc
getUri(): string
Get database URI.
Generated by danog/phpdoc
setUri(string $uri): self
Set database URI.
Parameters:
$uri
:string
Database URI.
Generated by danog/phpdoc
getKey(): string
Get DB key.
Generated by danog/phpdoc
getCacheTtl(): int
Get for how long to keep records in memory after last read, for cached backends.
Generated by danog/phpdoc
setCacheTtl(int|string $cacheTtl): self
Set for how long to keep records in memory after last read, for cached backends. The cache TTL identifier can be a string like '+5 minutes'.
Parameters:
$cacheTtl
:int|string
For how long to keep records in memory after last read, for cached backends.
Generated by danog/phpdoc
getPassword(): string
Get password.
Generated by danog/phpdoc
setPassword(string $password): self
Set password.
Parameters:
$password
:string
Password.
Generated by danog/phpdoc
hasChanged(): bool
Get whether this setting was changed, also applies changes.
Generated by danog/phpdoc
Generated by danog/phpdoc