expiry

Matthew Glubb matt at zgroupplc.com
Fri May 26 11:34:34 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Something like this then:

memcache->set($key, $val, $expiry);
memcache->get($key);
memcache->set($key, $val, $expiry);

Seems like that would do the trick :)

Matt

On 26 May 2006, at 12:21, Joshua Thijssen wrote:

> When I add an item to the memcache and use an expiry-timestamp, it  
> will
> expire, no matter how many times the key is read in the remaing  
> time. Is
> it possible to create an item with a expiry-timestamp (an relative
> value, say 60seconds), which gets reset each time the item is read so
> so the item would stay in the cache until it's not read for a long  
> time
> or when we remove it.



m a t t h e w   g l u b b

________________________________________________________________________
Z Group PLC

Tel: +44 (0) 8700 111 173
Fax: +44 (0) 8707 051 393
Txt: +44 (0) 7800 140 877
Web: <http://www.zgroupplc.com/>

This  email  and  any  files  transmitted  with it are  confidential and
intended solely for the use of the individual or entity to whom they are
addressed.  The opinions  expressed in this mail are those of the author
and do not necessarily  represent the views of the company.  If you have
received this email in error please notify <service at zgroupplc.com>



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFEdufNyI6MkdKPngkRAlw1AJ9CpYNOA4rir6H99Nxvo3ZkbRlEZACfeCug
OOoNIFcZorUXlQD/JAX6PRo=
=ttbe
-----END PGP SIGNATURE-----


More information about the memcached mailing list