--- title: danog\MadelineProto\Settings\Database\Memory: Memory backend settings. description: --- # `danog\MadelineProto\Settings\Database\Memory` [Back to index](../../../../index.md) > Author: Daniil Gentili Memory backend settings. ## Method list: * `getCleanup(): bool` * `setCleanup(bool $cleanup): self` * `hasChanged(): bool` ## Methods: ### `getCleanup(): bool` Get whether to cleanup the memory before serializing. ### `setCleanup(bool $cleanup): self` Set whether to cleanup the memory before serializing. Parameters: * `$cleanup`: `bool` Whether to cleanup the memory before serializing. ### `hasChanged(): bool` Get whether this setting was changed, also applies changes. --- Generated by [danog/phpdoc](https://phpdoc.daniil.it)