February 2018
Intermediate to advanced
382 pages
11h 33m
English
The steps for using bitmaps are as follows:
For example, when a user whose ID is 100 has tried the restaurant reservation feature in Relp, we set the corresponding bit:
127.0.0.1:6379> SETBIT "users_tried_reservation" 100 1(integer) 0
For example, we would like to know if the user whose ID is 400 has ever tried online orders:
127.0.0.1:6379> GETBIT "users_tried_online_orders" 400(integer) 0
Suppose we would like to know how many ...
Read now
Unlock full access