I have some PHP pages using a common stateless component that computes file hashes on demand and keeps them for future recall (to avoid multiple computations).
I would like to use the fact that PHP is not shutting down between requests to keep the data available if memory is not full.
The process is stateless so I have no problem with PHP shutting down or deleting the object, and saving/reloading the state from disk is slower than recomputation (not all script uses the same file hashes, so saving/loading them all is not good).
Is there some way to store an object instance in PHP across multiple script calls without saving on disk? If the data is deleted or a new object is created for separate threads it is not a problem, the methods are all pure.