Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Database_Services("ReadDataRow"
I have this in my api which reads a control file record which, as I would like it kept in memory after first read, set the notexpired to 0.
I was wondering what forces this to do a fresh read. Does it stay in memory for weeks?
I was just wondering what would happen if a value in the record was changed, how would a fresh read be forced.
Is there some sort of session signature that is used also, so if the user closed the web app, that would force a new read next time run.
NotExpired=0
rv = Database_Services("ReadDataRow", TableName, KeyID, NotExpired)
I was wondering what forces this to do a fresh read. Does it stay in memory for weeks?
I was just wondering what would happen if a value in the record was changed, how would a fresh read be forced.
Is there some sort of session signature that is used also, so if the user closed the web app, that would force a new read next time run.
NotExpired=0
rv = Database_Services("ReadDataRow", TableName, KeyID, NotExpired)
Comments
It's not a stay all day, all week or indefinitely scenario.
I read your post and took notExpired to represent a status but instead it seems to be an indication of intent.
In other words, I thought "notExpired = true" meant this record has notExpired.
What it really appears to mean is "do the check to see if this record has expired" so setting it to false skips the check, assumes it hasn't expired and automatically reads from memory.
I should have known you'd investigated thoroughly before asking the question and not just spat out my initial thoughts. :D
I think the, valid for this request only, response still stands, though good chance you've been down that rabbithole before posting too.
I was wondering what forces this to do a fresh read. Does it stay in memory for weeks?
There are three conditions when a fresh read is occurs:
Is there some sort of session signature that is used also, so if the user closed the web app, that would force a new read next time run.
Every session starts with a new cache.