I have a google app engine apps (created using python). I want to add a value to memcache but would like for the value to expire every midnight (PST) How do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set an item’s expiration time either as absolute epoch time, or as a relative time-to-expire of up to one month. See http://code.google.com/appengine/docs/python/memcache/functions.html
There’s a second alternative. If you have a set of known keys that you’d like to expire at a given time each day, use a cron job.