Doctrine Website
  1. Doctrine Website
  2. DWEB-58

Missing parameter and semicolon for setMemcache() call

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Component/s: Documentation
    • Labels:
      None
    • Environment:
      Irrelevant

      Description

      URL: http://www.doctrine-project.org/projects/orm/2.0/docs/reference/caching/en#cache-drivers:memcache

      Documentation
      <?php
      
      $memcache = new Memcache();
      $memcache->connect('memcache_host', 11211);
      
      $cacheDriver = new \Doctrine\Common\Cache\MemcacheCache();
      $cacheDriver->setMemcache()
      $cacheDriver->save('cache_id', 'my_data');
      Doctrine\Common\Cache\Memcache
      class MemcacheCache extends AbstractCache
      {
          /* ... */
          
          /**
           * Sets the memcache instance to use.
           *
           * @param Memcache $memcache
           */
          public function setMemcache(Memcache $memcache)
          {
              $this->_memcache = $memcache;
          }
          
          /* ... */
      }
      Pseudo Patch
      <?php
      
      $memcache = new Memcache();
      $memcache->connect('memcache_host', 11211);
      
      $cacheDriver = new \Doctrine\Common\Cache\MemcacheCache();
      - $cacheDriver->setMemcache()
      + $cacheDriver->setMemcache($memcache);
      $cacheDriver->save('cache_id', 'my_data');

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Jan Pieper
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: