> I'm doubting between APC and memcached to store information in the RAM of my > server which has to expire automatically/be removed from the RAM after > x seconds. > Looking at APC for storing the value in RAM with 30 seconds expiration time > leaves the key forever in the RAM, up until someone tries to access > it. > It then removes the item; if you don't access the value after the expiration > time it will remain in the cache. Forever. > > I was wondering how memcached treats the expiration time; does it provide an > own garbage-collector process? > > Purpose: > I want to store en key-value combination in RAM after each login to my > web-app. As long as the person is active on the web-app the key-value will > be 'reset' with now() + 600 seconds. If the person abandons the web-app the > key-value pair have to be destroyed after the expiration time > automatically. > > Is memcached able to do this automatically?
You can use the touch command to "bump" the expiration time. You can also re-set the value with a new expiration value. -- --- You received this message because you are subscribed to the Google Groups "memcached" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
