It looks like this could be performed by the PHP SEM function .
It serializes the objects inside. Given the sheer amount of data, performance increases significantly with data volume. And 8GB (and boost) is too much for shmop and SEM for efficient processing.
My alternative is to simply query the database if necessary (while maintaining the local cached version for each thread), which, in my opinion, will turn out to be faster (especially with SSDs). Therefore, these functions do not suit me.
source share