title: Yii time caching not working?
body: <p>My version of YII: 1.1.12... scratch that, I upgraded to version 1.1.13, and still doesn't work.</p>
  
  <p>I tried this:</p>
  
  <pre><code>Yii::app()-&gt;cache-&gt;set('someKey', $auctions);
  $data = Yii::app()-&gt;cache-&gt;get('someKey');
  print_r($data);
  </code></pre>
  
  <p>And I see the data that I stored! However, if I try this:</p>
  
  <pre><code>Yii::app()-&gt;cache-&gt;set('someKey', $auctions, 10);
  $data = Yii::app()-&gt;cache-&gt;get('someKey');
  print_r( $data );
  </code></pre>
  
  <p>I see nothing? Why is YII ignoring my time interval? What am I missing?</p>
  
  <p>** EDIT **</p>
  
  <p>My caching is defined in config as:</p>
  
  <pre><code>'cache'=&gt;array(
    'class'=&gt;'system.caching.CMemCache',
      'useMemcached'=&gt;false,
      'servers'=&gt;array(
        array( 'host'=&gt;'127.0.0.1', 'port'=&gt; 11211, 'weight'=&gt;60 ),
        //array('host'=&gt;'server2', 'port'=&gt;11211, 'weight'=&gt;40),
      ),
  ),
  </code></pre>
  
  <p>I know the Memcache is working, because I've tested it with this example outside of the YII framework:</p>
  
  <pre><code>$memcache = new Memcache;
  $memcache-&gt;connect("localhost",11211);
  $tmp_object = new stdClass;
  $tmp_object-&gt;str_attr = "test";
  $memcache-&gt;set("mysupertest",$tmp_object,false,5);
  var_dump($memcache-&gt;get("mysupertest"));
  </code></pre>
  
  <p>This works and the item is cached for 5 seconds...</p>