A
A
Anton2016-07-22 06:31:49
Yii
Anton, 2016-07-22 06:31:49

In what cases have you used Redis?

Hello. I heard about such a storage as a radish, at the same time the question arose why it is needed when searching, I found out that it can be used to cache requests to the database or store sessions, but how did you use Redis for?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
C
Chronic 86, 2016-07-22
@chronic86

  1. Storage of sessions and user profiles;
    eax.me/redis

A
Anton Konovalov, 2016-07-22
@akonovalov

In addition to the above, I can recommend looking on YouTube for reports from Roman Imankulov about the use of Redis, like this one .

M
Mikhail Osher, 2016-07-22
@miraage

Помимо всего вышеуказанного:
- рейтинги топ100

// update player value on corresponding event
ZADD ratings_gold <value> <playerId>
// fetch top100 later
ZREVRANGEBYSCORE ratings_gold +inf -inf WITHSCORES LIMIT 100

- накопление промежуточных данных с последующим перзистом в базу

D
D', 2016-07-22
@Denormalization

- Для pub/sub
- Для всего, для чего можно создать таблцу в БД, но лень.

A
alex_dm, 2016-07-28
@alex_dm

Мы используем как замену flock для процессов, запускающихся на разных серверах/в разных контейнерах.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question