I am developing a plugin that works in a scheduled time (run each 12 hours). I am trying to read a value from the first row of a moodle table, then check if this value persists in the table for more than 12 hours then get a notification. I don't want to create a table to save the timestamp and the value.
How can I save the value for the next scheduled run and compare it with the current value to check if it is still the same value?