Answer the question
In order to leave comments, you need to log in
Redis - search by value. Is it possible to?
Hello.
I want to try to make a database on Redis.
There were a couple of questions.
1) Why use a persistent connection to Redis?
2) How to immediately create an eternally stored object ($redis->set())?
3) Is it possible to somehow create a search by values?
4) I read that there are some hash tables, sorting tables or values. Where can you get acquainted with them, exactly how to work with them?
5) Is there any storage limit for $redis->set? Can there be stored in an array, for example, 10,000 values?
In general, I would really like to somehow do a search in Redis without going through all the values.
As I assume so far:
There is a 'database' => {
1 => ['id' => 1, 'login' => 'Toopie', 'password' => 'toster', 'date_reg' => '31-12-1955']
........ ............
}
But you must admit, if there are a lot of such columns, then the server will burst.
Is it possible to do this (SQL example):
SELECT * FROM `database` WHERE `password`='toster'
Answer the question
In order to leave comments, you need to log in
Redis is absolutely not suitable for your task. If you need in-memory storage, look towards Aerospike
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question