Categories
What do arguments in ioredis do?
This code is used.
import Redis from 'ioredis'; const cache = new Redis(); cache.set('data', data, 'EX', 3);
cache.set('data', data, 'EX', 3)
Answer the question
In order to leave comments, you need to log in
EX - Expire time in seconds. 4th argument is the number of seconds. Key lifetime after which it will be deleted. Redis Docks
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question