1M is equal to 2^20bytes
1M=1024KB, 1KB=1024Bytes, so 1M=1024*1024=2^20Bytes.
Redis a simple key value userId = 1 occupies 15bytes
1M: 1024*1024/15 == 69905
1M memory can store 69905 simple user data
1M is equal to 2^20bytes
1M=1024KB, 1KB=1024Bytes, so 1M=1024*1024=2^20Bytes.
Redis a simple key value userId = 1 occupies 15bytes
1M: 1024*1024/15 == 69905
1M memory can store 69905 simple user data