M
M
My joy2014-12-06 15:34:00
PHP
My joy, 2014-12-06 15:34:00

Memcached via fcgi, what are the pitfalls?

I'm doing a project, using the classes that I used on all previous projects. Among them there is a cover version for memcached:

<?php
  
  /**
   *	Кавер-версия для Memcached
   *
   */
  
  class MD extends Memcached
  {
    public function __construct()
    {
      parent::__construct();
      parent::addServer( LS_MD_HOST , LS_MD_PORT );
    }	
  }

I run it, but it swears that there is no memcashed class. I write to the hoster, he says that they use memcache and not memcached, but there is an option to make a php + memcached build and connect to the site as fcgi, then everything will work as before. Tell me what are the pitfalls in this option, I'm especially interested in performance. I read that fcgi is slower than fpm, that it creates a new connection every time.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2014-12-06
@t-alexashka

Use Memcache , not Memcache d they are compatible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question