Ignore:
Timestamp:
01/18/12 16:10:57 (12 years ago)
Author:
cristiano
Message:

Ticket #2434 - Alteração da estrutura de diretórios da nova API

Location:
trunk/prototype
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/prototype

    • Property svn:ignore set to
      .links.php.kate-swp
  • trunk/prototype/api/cache/MemoryCache.php

    r5341 r5399  
    4242 
    4343    public function  __construct($conf=Null) { 
    44         $this->_memcache = new Memcache(); 
    45         $this->_config = $conf; 
     44        //$this->_memcache = new Memcache(); 
     45//        $this->_config = $conf; 
    4646 
    4747        // host, port, persistent, weight 
    48         if($conf!==Null){ 
    49             foreach ($conf as $c){ 
    50                 $result = $this->_memcache->addServer($c[0], $c[1], $c[2], $c[3]); 
    51             } 
    52         } 
    53         else{ 
    54             $this->_memcache->addServer('localhost', 11211); 
    55         } 
     48//        if($conf!==Null){ 
     49//            foreach ($conf as $c){ 
     50//                $result = $this->_memcache->addServer($c[0], $c[1], $c[2], $c[3]); 
     51//            } 
     52//        } 
     53//        else{ 
     54//            $this->_memcache->addServer('localhost', 11211); 
     55//        } 
    5656    } 
    5757 
     
    6767    public function put($id, $data, $expire=0, $compressed=false){ 
    6868 
    69         ob_start(); 
    70         print_r( "criando $id e armazenando no cache" ); 
    71         $output = ob_get_clean(); 
    72         file_put_contents( "/tmp/cache.log", file_get_contents( "/tmp/cache.log" ) . $output . "\n" ); 
    7369 
    7470//         if($compressed) 
     
    8985//         $return = $this->_memcache->get($id); 
    9086          $return = false; 
    91  
    92         if( $return ){ 
    93             ob_start(); 
    94             print_r( "lendo $id do cache" ); 
    95             $output = ob_get_clean(); 
    96             file_put_contents( "/tmp/cache.log", file_get_contents( "/tmp/cache.log" ) . $output . "\n" ); 
    97         } 
    9887 
    9988        return( $return ); 
Note: See TracChangeset for help on using the changeset viewer.