0
0
Redisquery~10 mins

Maxmemory setting in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the maxmemory to 100 megabytes in Redis.

Redis
CONFIG SET maxmemory [1]
Drag options to blanks, or click blank then click option'
A100mbs
B100mb
C100mbps
D100m
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect unit abbreviations like 'mbs' or 'mbps'.
Omitting the unit entirely.
2fill in blank
medium

Complete the command to check the current maxmemory setting in Redis.

Redis
CONFIG GET [1]
Drag options to blanks, or click blank then click option'
Amemorymax
Bmaxmemory
Cmax_mem
Dmemory_max
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names like 'memorymax' or 'max_mem'.
3fill in blank
hard

Fix the error in the command to set maxmemory to 256 megabytes.

Redis
CONFIG SET maxmemory [1]
Drag options to blanks, or click blank then click option'
A256mb
B256
C256m
D256mbs
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the unit or using incorrect units like 'mbs'.
4fill in blank
hard

Fill both blanks to set maxmemory to 512 megabytes.

Redis
CONFIG SET [1] [2]
Drag options to blanks, or click blank then click option'
Amaxmemory
Ballkeys-lru
C512mb
Dmaxmemory-policy
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing parameter names and values in the wrong order.
Using incorrect units or parameter names.
5fill in blank
hard

Fill all three blanks to set maxmemory to 1 gigabyte, set eviction policy to volatile-lru, and verify the maxmemory setting.

Redis
CONFIG SET [1] [2]
CONFIG SET [3] volatile-lru
CONFIG GET maxmemory
Drag options to blanks, or click blank then click option'
Amaxmemory
B1gb
Cmaxmemory-policy
Dmemory-policy
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong parameter names for eviction policy.
Using incorrect memory units.