My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
ExpireCommand  
Updated Dec 21, 2010 by anti...@gmail.com

We moved to Redis.io!

Redis home moved to http://redis.io, please visit our new home.

Comment by or.else....@gmail.com, May 8, 2009

How does one clear a timeout then generically (strings, lists, sets)? I'd have to know that my key is a string can call GET k then SET k v then EXPIRE k t. Can you please add a RMEXPIRE that works for strings, sets, lists, etc.?

Comment by project member anti...@gmail.com, May 8, 2009

Hello. To clear a timeout is not allowed for the same reasons specified in the "Restrictions with write operations against volatile keys" of this documentation page. The only way to do this is to read the value, delete the key, and recreate the value again.

Comment by mrdu...@gmail.com, Jul 30, 2009

expire command is not replicated in redis_version:0.900.

Can any one confirm?

Comment by alex.arn...@gmail.com, Aug 6, 2009

That is correct, the issue is fixed in the git repository however.

See http://github.com/antirez/redis/commit/774230260ff61dbc143236f690ccc73048f7fdfe

Comment by garph...@i.ua, Feb 21, 2010

SET A 1<br> EXPIREAT A 1266796909<br> 1<br> EXPIREAT A -1<br> 1<br> TTL A<br> -1 <br> EXPIREAT A 1266796909<br> 0<br> <br> Why?

Comment by beyondcompute@gmail.com, Apr 20, 2010

Hello. How can I set an expiration for multiple keys (to use with MSET or MSETNX)?

Comment by dim...@gmail.com, Apr 29, 2010

Hello.

set dff 1   //dff=1
incr dff    //dff=2
expire dff 1000
get dff     //dff=2
incr dff    //dff=1, but must dff=3   <-- 
get dff     //dff=1
Comment by prodgoog...@gtempaccount.com, Aug 24, 2010

Hi all....I understand why writes cause volatile entries to be cleared out, it makes sense. I don't understand, however, why it is not permitted to specify a new EXPIRES value for an existing volatile entry. It seems to me that should be a safe operation. The only thing I can think of is that (depending on how the replication works) a slave could expire a key before receiving the new EXPIRES command from the master, so they'd get out of sync....but given that the key expiring is done by choosing a random chunk of keys and checking them for expiry, that makes me think that all expiring is probably done on the master and then the list of expired keys is pushed to the slaves, so this should be safe. Can someone shed some light on this for me? Thanks.

Comment by aivop...@gmail.com, Sep 23, 2010

Typo in "Let's rework a bit hour example" in FAQ part

Comment by mochid...@gmail.com, Nov 23, 2010

the PERSIST command is not usable in current stable 2.0.0


Sign in to add a comment
Powered by Google Project Hosting