This is a debug command used by the developers - it isn't recommended that you use it in game - it makes you game use more memory (to test for memory-related issues).
The syntax for the addmemory command is as follows:
Search our database of 109 The Forest commands...Alrighty Then!
Find below working examples of the addmemory command.
This is the only way the addmemory command can be used.