Ronald Wiplinger
unread,Feb 20, 2018, 3:32:51 AM2/20/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redis DB
I'm starting with Redis and need some advices.
I have chat bot, which responds to trigger words in my database (keyword, hint). However, the chat bot is too active. I want to slow it down with Redis.
My idea is to add a keyword, that the chat bot answered into Redis with a TTL of 60 min. There are maybe 100 keywords used in the past hour. My php program should check if that keyword is in Redis. Since it should be kept for 60 min, I will only check if that keyword is there, if it is, skip the answer, if not, post the answer.
Could I use a list, to add these keywords? I have so far only learned that Redis keys can expire, but I'm unsure if it could do also on elements of a list.