use sorted sets to store the query frequency of words in redis-1 and add two
corresponding methods