card323 / redis

Automatically exported from code.google.com/p/redis
0 stars 0 forks source link

require a command that reset expire time while get a key #617

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of Redis you are using, in what kind of Operating System?
2.2.11, suse

What is the problem you are experiencing?
require a command that reset expire time while get a key, like setex
it's is commonly used in cache, the newly accessed key should live longer

What steps will reproduce the problem?
none

Do you have an INFO output? Please past it here.
none

If it is a crash, can you please paste the stack trace that you can find in
the log file or on standard output? This is really useful for us!
none

Please provide any additional information below.
none

Original issue reported on code.google.com by wonde...@gmail.com on 1 Aug 2011 at 9:42

GoogleCodeExporter commented 8 years ago
It is as simple as:

MULTI
GET ...
EXPIRE ... 10000
EXEC

Cheers,
Salvatore

Original comment by anti...@gmail.com on 14 Sep 2011 at 3:45