Store data in shared memory

The access method can allocate areas in shared memory to preserve information between purpose-function calls. To allocate memory, you decide which function to call and what duration to assign.