Sunday, 12 April 2015

SPOP key count

Syntax
SPOP key
    Remove and return one member from set.

SPOP key count
    Remove and return count number of members from set.

127.0.0.1:6379> sadd set1 1 3 5 7 2 4 6 8 
(integer) 8 
127.0.0.1:6379> spop set1 
"3" 

 
Prevoius                                                 Next                                                 Home

No comments:

Post a Comment