0 votes
in Redis by
Given is a code snippet.

127.0.0.1:6379> lpush numbers 4

127.0.0.1:6379> lpush numbers 3

127.0.0.1:6379> lpush numbers 7

127.0.0.1:6379> rpush numbers 10

127.0.0.1:6379> rpush numbers 15

127.0.0.1:6379> lpush numbers 12

Which of the following will be the output for the given code?

a) 15, 10, 7, 3, 4, 12

b) 3, 4, 7, 10, 12, 15

c) 4, 3, 7, 12, 15, 10

d) 12, 7, 3, 4, 10, 15

1 Answer

0 votes
by

d) 12, 7, 3, 4, 10, 15

Related questions

0 votes
asked Oct 6, 2022 in Redis by Robindeniel
0 votes
asked Oct 4, 2022 in Redis by sharadyadav1986
...