public function set($mailbox, $data, $uidvalid)
    {
        $mailbox = strval($mailbox);

        if (empty($data)) {
            $this->_backend->getMetaData($mailbox, $uidvalid, array('uidvalid'));
        } else {
            $this->_backend->set($mailbox, $data, $uidvalid);

            if ($this->_debug) {
                $this->_debug->info(sprintf(
                    'CACHE: Stored messages [%s; %s]',
                    $mailbox,
                    $this->_baseob->getIdsOb(array_keys($data))->tostring_sort
                ));
            }
        }
    }
public function set($mailbox, $data, $uidvalid)
    {
        $mailbox = strval($mailbox);

        if (empty($data)) {
            $this->_backend->getMetaData($mailbox, $uidvalid, array('uidvalid'));
        } else {
            $this->_backend->set($mailbox, $data, $uidvalid);

            if ($this->_debug) {
                $this->_debug->info(sprintf(
                    'CACHE: Stored messages [%s; %s]',
                    $mailbox,
                    $this->_baseob->getIdsOb(array_keys($data))->tostring_sort
                ));
            }
        }
    }
public function set ( $ mailbox , $ data , $ uidvalid ) { $ mailbox = strval ( $ mailbox ) ; if ( empty ( $ data ) ) { $ this -> _backend -> getMetaData ( $ mailbox , $ uidvalid , array ( 'uidvalid' ) ) ; } else { $ this -> _backend -> set ( $ mailbox , $ data , $ uidvalid ) ; if ( $ this -> _debug ) { $ this -> _debug -> info ( sprintf ( 'CACHE: Stored messages [%s; %s]' , $ mailbox , $ this -> _baseob -> getIdsOb ( array_keys ( $ data ) ) -> tostring_sort ) ) ; } } }
Store information in cache.

@param string $mailbox    An IMAP mailbox string.
@param array $data        The list of data to save. The keys are the
UIDs, the values are an array of information
to save. If empty, do a check to make sure
the uidvalidity is still valid.
@param integer $uidvalid  The IMAP uidvalidity value of the mailbox.
Store information in cache .