--- title: danog\MadelineProto\Settings\Peer: Peer database settings. description: --- # `danog\MadelineProto\Settings\Peer` [Back to index](../../../index.md) > Author: Daniil Gentili Peer database settings. ## Method list: * `getFullInfoCacheTime(): int` * `setFullInfoCacheTime(int $fullInfoCacheTime): self` * `getFullFetch(): bool` * `setFullFetch(bool $fullFetch): self` * `getCacheAllPeersOnStartup(): bool` * `setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup): self` * `hasChanged(): bool` ## Methods: ### `getFullInfoCacheTime(): int` Get cache time for full peer information (seconds). --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `setFullInfoCacheTime(int $fullInfoCacheTime): self` Set cache time for full peer information (seconds). Parameters: * `$fullInfoCacheTime`: `int` Cache time for full peer information (seconds). --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `getFullFetch(): bool` Get should madeline fetch the full member list of every group it meets? --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `setFullFetch(bool $fullFetch): self` Set should madeline fetch the full member list of every group it meets? Parameters: * `$fullFetch`: `bool` Should madeline fetch the full member list of every group it meets? --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `getCacheAllPeersOnStartup(): bool` Get whether to cache all peers on startup for userbots. --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup): self` Set whether to cache all peers on startup for userbots. Parameters: * `$cacheAllPeersOnStartup`: `bool` Whether to cache all peers on startup for userbots. --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) ### `hasChanged(): bool` Get whether this setting was changed, also applies changes. --- Generated by [danog/phpdoc](https://phpdoc.daniil.it) --- Generated by [danog/phpdoc](https://phpdoc.daniil.it)