examples/ratelimit/ratelimit.php
protected function _setMultiIncrementTransactionPart(Rediska_Transaction $transaction, $subject, $bucket) {
		$keyName = $this->_getKeyName($subject);

		$transaction->incrementinhash($keyName, $bucket, 1)
				->deletefromhash($keyName, ($bucket + 1) % $this->_bucketCount)
				->deletefromhash($keyName, ($bucket + 2) % $this->_bucketCount)
				->expire($keyName, $this->_subjectExpire);
	}
protected function _setMultiIncrementTransactionPart(Rediska_Transaction $transaction, $subject, $bucket) {
		$keyName = $this->_getKeyName($subject);

		$transaction->incrementinhash($keyName, $bucket, 1)
				->deletefromhash($keyName, ($bucket + 1) % $this->_bucketCount)
				->deletefromhash($keyName, ($bucket + 2) % $this->_bucketCount)
				->expire($keyName, $this->_subjectExpire);
	}
Adds the commands needed for the increment function

@param Rediska_Transaction $transaction
@param string $subject A unique identifier, for example a session id or an IP
@param int $bucket
@return void