K
K
Konstantin2014-07-30 03:20:18
SQL
Konstantin, 2014-07-30 03:20:18

Redis how to make like selection?

There is a base in redis, stores url's.
The structure is something like this:
PU[ID]:tttp://lol.ru/image/file-one.jpg
PU[123]:tttp://test.ru/txt/some.txt
PU[451]:tttp:/ /test.ru/txt/new.txt
I think it's pretty clear. How to make a selection by the value mask "tttp://test.ru/txt/*" and get all the keys (id) that match the selection condition of the records?
ttp = http, toaster autocorrect

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alternativshik, 2014-07-30
@alternativshik

Directly like this in the forehead - no way, it’s not sharpened for this, but the solution of such a plan has a place to be.
stackoverflow.com/questions/7604455/how-to-search-...

@
@mgyk, 2014-07-30
_

The task is solved very badly on any key-value database. It’s better to put it in some elastic if you need to search very quickly by mask

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question