PHP shared memory on windows server -
- i want store small array (aprox
1mb
) massive access load. - i don't want use database.
- i don't need secure data.
- i change array one-time per minute, have thousands of access each minute read data.
actually i'm using php shared memory segment
shmop
works fine. causes php exeption results apache restart.
do exist way same memory operations in windows other php module?
do exist better way handle data fast access?
i don't care security or reliability of stored data.
how work shared memory variable ($shm
):
visitor calls $shm. if ($shm exists, , not older 1 minute): return $shm; else: create new $shm, return $shm; visitor2 calls $shm. if ($shm exists, , not older 1 minute): return $shm; else: create new $shm, return $shm;
etc ...
apache 2.4.23 (win64) php 5.5.3
Comments
Post a Comment