Redis Applied Design Patterns by Arun Chinnachamy

Redis Applied Design Patterns by Arun Chinnachamy

Author:Arun Chinnachamy [Chinnachamy, Arun]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2014-09-23T04:00:00+00:00


The previous command, which is zinterstore samsung_nex 2 samsung nex aggregate max, will compute the intersection of two sorted sets, samsung and nex, and stores it in another sorted set, samsung_nex. To see the result, type the following commands:

> zrevrange samsung_nex 0 4 withscores 1) samsung_galaxy_nexus 2) 7 > hmget titles samsung_galaxy_nexus 1) Samsung Galaxy Nexus

Tip

If you want to cache the result for multiword queries and remove it automatically, use an EXPIRE command and set expiry for temporary keys.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.