I'm working with Vertx and Redis and I need to store triplets of (url, words, date).
Words is a list of values and not just a long string because when I query for these words I want to work on a list of strings. The date should be updated everytime I check if the URL exists in Redis
And so my questions are:
I've seen many examples of how to solve these using LPUSH (or something similar) but as I said I want to create one insertion request and be done with it, similarly, I would like to get the results with as few as possible (ideally 1) request
Thanks in advance
If your Redis server > 2.4 you can LPUSH
(doc) multiple values at once.
Alternatively, you can use Redis transaction to do multiple command at once.
I'm not aware of a command which allows you to get the creation/update date of a key, I think you have to create it manually like in this SO question