Answer the question
In order to leave comments, you need to log in
Redis, mset() + TTL possible?
Good afternoon.
Redis server v2.8
Redis client PhpRedis built from source I switched
to Redis with Memcached, using it as a layer in front of the database.
Very upset by the lack of the ability to set TTL in mSet(), hMSet().
Can you please suggest any solution?
DECISION
$trans = $redis->multi();
foreach ($items as $k => $v)
$trans->setex($k, 100, $v);
$trans->exec();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question