Example #1
0
 /**
  * @since  1.0
  *
  * @param resource $handle
  * @param Cache $cache
  */
 public function __construct($handle, Cache $cache)
 {
     parent::__construct($handle);
     $this->cache = $cache;
     $this->setOption(ONOI_HTTP_REQUEST_RESPONSECACHE_TTL, 60);
     // 60 sec by default
     $this->setOption(ONOI_HTTP_REQUEST_RESPONSECACHE_PREFIX, '');
 }
 /**
  * @since  1.0
  *
  * @param resource $handle
  * @param Cache $cache
  */
 public function __construct($handle, Cache $cache)
 {
     parent::__construct($handle);
     $this->cache = $cache;
 }