Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
The data, let's say of the format:
"first name", "last name", "time first entered/renewed"
Where "time first entered/renewed" is the last recorded activity of a person, say in UNIX time (seconds since Jan 1, 1970). Now let's say that a program has created this record and gives the user a expiry of 600 seconds. If there's no activity, remove the entry. If there's activity, reset the timer back to 600s. If there's a new user, create the record and set the countdown on.
Now, how would one do this if there were multiple records of users that were last active at various times? Also, how would one display this info (either interactively or in a dump of the array to file every 30 seconds?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: tracking transient data in memory by countdown timer
by BrowserUk (Patriarch) on Feb 21, 2011 at 19:30 UTC | |
by Anonymous Monk on Feb 24, 2011 at 11:58 UTC | |
|
Re: tracking transient data in memory by countdown timer
by jethro (Monsignor) on Feb 21, 2011 at 18:28 UTC | |
|
Re: tracking transient data in memory by countdown timer
by Eliya (Vicar) on Feb 21, 2011 at 18:15 UTC | |
by Anonymous Monk on Feb 21, 2011 at 18:56 UTC |