Is it possible to share a single instance of a Memcache between multiple PHP projects?

Discussion in 'Programming/Scripts' started by Prahlad Makwana, Dec 17, 2019.

  1. Is it possible to share a single instance of a Memcache between multiple PHP projects?
     
  2. Steini86

    Steini86 Active Member

    Well, it is possible, but not recommended (at least the last time I looked it up). The projects can see/change the cache of other projects.
    I switched to Redis, where I have an instance per project. Maybe it has changed in the meantime, my information is kinda old .. Since redis performed much better than memcached, I never looked back ;)

    See for examlpe:
    https://security.stackexchange.com/...use-memcached-in-a-shared-hosting-environment
     
    Prahlad Makwana likes this.
  3. Harsh Shah

    Harsh Shah Banned

    Yes
    It is possible to do that. Basically, Memcache is a memory store space.
    and you can run memcache on one or more servers.
    Hope this will help you.
    Thank you.
     

Share This Page