library/database/class.sqldriver.php
public function Cache($Key, $Operation = NULL, $Options = NULL) {
      if (!$Key) {
         $this->_CacheKey = NULL;
         $this->_CacheOperation = NULL;
         $this->_CacheOptions = NULL;

         return $this;
      }

      $this->_CacheKey = $Key;
      
      if (!is_null($Operation))
         $this->_CacheOperation = $Operation;
      
      if (!is_null($Options))
         $this->_CacheOptions = $Options;

      return $this;
   }
public function Cache($Key, $Operation = NULL, $Options = NULL) {
      if (!$Key) {
         $this->_CacheKey = NULL;
         $this->_CacheOperation = NULL;
         $this->_CacheOptions = NULL;

         return $this;
      }

      $this->_CacheKey = $Key;
      
      if (!is_null($Operation))
         $this->_CacheOperation = $Operation;
      
      if (!is_null($Options))
         $this->_CacheOptions = $Options;

      return $this;
   }
public function Cache ( $ Key , $ Operation = NULL , $ Options = NULL ) { if ( ! $ Key ) { $ this -> _CacheKey = NULL ; $ this -> _CacheOperation = NULL ; $ this -> _CacheOptions = NULL ; return $ this ; } $ this -> _CacheKey = $ Key ; if ( ! is_null ( $ Operation ) ) $ this -> _CacheOperation = $ Operation ; if ( ! is_null ( $ Options ) ) $ this -> _CacheOptions = $ Options ; return $ this ; }
Set the cache key for this transaction

@param string|array $Key The cache key (or array of keys) that this query will save into.
@param string $Operation The cache operation as a hint to the db.
@param array $Options The cache options as passed into Gdn_Cache::Store().
@return Gdn_SQLDriver $this
Set the cache key for this transaction