Complete the code to set the maxmemory to 100 megabytes in Redis.
CONFIG SET maxmemory [1]Redis accepts both 100mb and 100m for 100 megabytes. Other options are invalid units.
Complete the command to check the current maxmemory setting in Redis.
CONFIG GET [1]The correct parameter name to get the maxmemory setting is maxmemory.
Fix the error in the command to set maxmemory to 256 megabytes.
CONFIG SET maxmemory [1]The correct value must include the unit 'mb' or 'm' for megabytes. Just '256' or '256mbs' is invalid.
Fill both blanks to set maxmemory to 512 megabytes.
CONFIG SET [1] [2]
To set maxmemory, use 'maxmemory' as the parameter and '512mb' as the value. The eviction policy is set separately.
Fill all three blanks to set maxmemory to 1 gigabyte, set eviction policy to volatile-lru, and verify the maxmemory setting.
CONFIG SET [1] [2] CONFIG SET [3] volatile-lru CONFIG GET maxmemory
First, set 'maxmemory' to '1gb'. Then set 'maxmemory-policy' to 'volatile-lru'. Finally, get the maxmemory value.