# danog\MadelineProto\Settings\Peer: Peer database settings.

[Back to index](../../../index.html)

> Author: Daniil Gentili <daniil@daniil.it>  
  

Peer database settings.  




## Method list:
* [`getFullInfoCacheTime(): int`](#getFullInfoCacheTime)
* [`setFullInfoCacheTime(int $fullInfoCacheTime): \danog\MadelineProto\Settings\Peer`](#setFullInfoCacheTime)
* [`getFullFetch(): bool`](#getFullFetch)
* [`setFullFetch(bool $fullFetch): \danog\MadelineProto\Settings\Peer`](#setFullFetch)
* [`getCacheAllPeersOnStartup(): bool`](#getCacheAllPeersOnStartup)
* [`setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup): \danog\MadelineProto\Settings\Peer`](#setCacheAllPeersOnStartup)

## Methods:
### <a name="getFullInfoCacheTime"></a> `getFullInfoCacheTime(): int`

Get cache time for full peer information (seconds).



### <a name="setFullInfoCacheTime"></a> `setFullInfoCacheTime(int $fullInfoCacheTime): \danog\MadelineProto\Settings\Peer`

Set cache time for full peer information (seconds).


Parameters:

* `$fullInfoCacheTime`: `int` Cache time for full peer information (seconds).  



### <a name="getFullFetch"></a> `getFullFetch(): bool`

Get should madeline fetch the full member list of every group it meets?



### <a name="setFullFetch"></a> `setFullFetch(bool $fullFetch): \danog\MadelineProto\Settings\Peer`

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?  



### <a name="getCacheAllPeersOnStartup"></a> `getCacheAllPeersOnStartup(): bool`

Get whether to cache all peers on startup for userbots.



### <a name="setCacheAllPeersOnStartup"></a> `setCacheAllPeersOnStartup(bool $cacheAllPeersOnStartup): \danog\MadelineProto\Settings\Peer`

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)
