Skip to content

Instantly share code, notes, and snippets.

@katpadi
Created February 13, 2017 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katpadi/4711ecdde3d5c3bcc6179a9310a7020c to your computer and use it in GitHub Desktop.
Save katpadi/4711ecdde3d5c3bcc6179a9310a7020c to your computer and use it in GitHub Desktop.
Tomato
SUBJECT: Tomato
FORMATTED DATA: {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 1st ITERATION ====
Key per character iteration: t
The actual ZADD: zadd kupsearch:t 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 2nd ITERATION ====
Key per character iteration: to
The actual ZADD: zadd kupsearch:to 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 3rd ITERATION ====
Key per character iteration: tom
The actual ZADD: zadd kupsearch:tom 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 4th ITERATION ====
Key per character iteration: toma
The actual ZADD: zadd kupsearch:toma 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 5th ITERATION ====
Key per character iteration: tomat
The actual ZADD: zadd kupsearch:tomat 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
======= 6th ITERATION ====
Key per character iteration: tomato
The actual ZADD: zadd kupsearch:tomato 1 {\"id\":3,\"label\":\"Tomato\",\"type\":\"Goods\"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment