I have to build an app with redis and phpredis which store logs and show logs.
I need to sort and query before display this logs.
Log model :
id -> 12
group -> sql
level -> error
message -> query return an error
timestamp -> 123423343
url -> htpp://...
Exemple of query :
-> Show me logs with group = sql and level = error
-> Show me all logs
-> Show me logs with group = sql and timestamp < 1342163216 && >1585876877
Then the result need to be ordered by id (ASC).
So I want to know if it's possible? And what model choose?
I've try string, hash, set, list but I can't do everything I want.