B
B
bro-dev2019-01-28 22:51:21
PHP
bro-dev, 2019-01-28 22:51:21

How to keep information in RAM on shared hosts in php?

How to keep information in RAM on shared hosts in php?
That is, on the node, we can simply save something to a variable, and then return it to the necessary routes, we will get a local memcache, is it possible to implement this in PHP?
Moreover, on shared hosts, that is, to keep some kind of PHP daemon constantly active, well, or even if it turns out to start it, then I’m not sure what will happen with it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Aksentiev, 2019-01-28
@Sanasol

That's what memkesh and the like are for.
If you can’t connect a memcash module on a shared share and it doesn’t exist at all, then no way.
PHP processes work out and die (as the great quote says, the meaning of which few people know and uses in the vein that PHP is shit: "PHP is created to die")
If you need such a cache, then the easiest option is to write information to a file and take it from there .

O
Oleg, 2019-01-28
@402d

google mysql memory table vs memcached . Maybe your hoster will give a ride.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question