Skip to content

Commit

Permalink
update changelog and methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Oct 28, 2010
1 parent b0b9de6 commit c3d0862
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 25 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.txt
@@ -1,3 +1,10 @@
Version 0.5.1 (October 28, 2010):
* Feature #2033: Implement ZCOUNT
* Improvement #4054: Add append and substring command to Rediska_Key
* Improvement #4055: Add setAndExpire command to Rediska_Key
* Bug #4290: Warning with empty namespace
* Bug #4476: Get parameter in sort command

Version 0.5.0 (September 7, 2010):
* Feature #2033: Implement hash commands: HSET, HGET, HDEL, HEXISTS, HLEN, HKEYS, HVALS, HGETALL, HMSET, HINCRBY, HMGET, HSETNX
* Feature #2035: Hash object
Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
@@ -1 +1 @@
0.4.2
0.5.1
22 changes: 16 additions & 6 deletions library/Rediska.php
Expand Up @@ -698,12 +698,12 @@ public function get($keyOrKeys) { $args = func_get_args(); return $this->_execut
/**
* Set + Expire atomic command
*
* @param string $key Key name
* @param mixed $value Value
* @param integer $time Expire time
* @param string $key Key name
* @param mixed $value Value
* @param integer $seconds Expire time in seconds
* @return mixed
*/
public function setAndExpire($key, $value, $time) { $args = func_get_args(); return $this->_executeCommand('setAndExpire', $args); }
public function setAndExpire($key, $value, $seconds) { $args = func_get_args(); return $this->_executeCommand('setAndExpire', $args); }

/**
* Increment the number value of key by integer
Expand Down Expand Up @@ -736,8 +736,8 @@ public function substring($key, $start, $end = -1) { $args = func_get_args(); re
/**
* Append value to a end of string key
*
* @param $key Key name
* @param $value Value
* @param string $key Key name
* @param mixed $value Value
* @return mixed
*/
public function append($key, $value) { $args = func_get_args(); return $this->_executeCommand('append', $args); }
Expand Down Expand Up @@ -993,6 +993,16 @@ public function getFromSortedSetByScore($key, $min, $max, $withScores = false, $
*/
public function getSortedSetLength($key) { $args = func_get_args(); return $this->_executeCommand('getSortedSetLength', $args); }

/**
* Get count of members from sorted set by min and max score
*
* @param string $key Key name
* @param number $min Min score
* @param number $max Max score
* @return mixed
*/
public function getSortedSetLengthByScore($key, $min, $max) { $args = func_get_args(); return $this->_executeCommand('getSortedSetLengthByScore', $args); }

/**
* Increment score of sorted set element
*
Expand Down
22 changes: 16 additions & 6 deletions library/Rediska/Connection/Specified.php
Expand Up @@ -244,12 +244,12 @@ public function get($keyOrKeys) { $args = func_get_args(); return $this->_execut
/**
* Set + Expire atomic command
*
* @param string $key Key name
* @param mixed $value Value
* @param integer $time Expire time
* @param string $key Key name
* @param mixed $value Value
* @param integer $seconds Expire time in seconds
* @return mixed
*/
public function setAndExpire($key, $value, $time) { $args = func_get_args(); return $this->_executeCommand('setAndExpire', $args); }
public function setAndExpire($key, $value, $seconds) { $args = func_get_args(); return $this->_executeCommand('setAndExpire', $args); }

/**
* Increment the number value of key by integer
Expand Down Expand Up @@ -282,8 +282,8 @@ public function substring($key, $start, $end = -1) { $args = func_get_args(); re
/**
* Append value to a end of string key
*
* @param $key Key name
* @param $value Value
* @param string $key Key name
* @param mixed $value Value
* @return mixed
*/
public function append($key, $value) { $args = func_get_args(); return $this->_executeCommand('append', $args); }
Expand Down Expand Up @@ -539,6 +539,16 @@ public function getFromSortedSetByScore($key, $min, $max, $withScores = false, $
*/
public function getSortedSetLength($key) { $args = func_get_args(); return $this->_executeCommand('getSortedSetLength', $args); }

/**
* Get count of members from sorted set by min and max score
*
* @param string $key Key name
* @param number $min Min score
* @param number $max Max score
* @return mixed
*/
public function getSortedSetLengthByScore($key, $min, $max) { $args = func_get_args(); return $this->_executeCommand('getSortedSetLengthByScore', $args); }

/**
* Increment score of sorted set element
*
Expand Down
22 changes: 16 additions & 6 deletions library/Rediska/Pipeline.php
Expand Up @@ -298,12 +298,12 @@ public function get($keyOrKeys) { $args = func_get_args(); return $this->_addCom
/**
* Set + Expire atomic command
*
* @param string $key Key name
* @param mixed $value Value
* @param integer $time Expire time
* @param string $key Key name
* @param mixed $value Value
* @param integer $seconds Expire time in seconds
* @return Rediska_Pipeline
*/
public function setAndExpire($key, $value, $time) { $args = func_get_args(); return $this->_addCommand('setAndExpire', $args); }
public function setAndExpire($key, $value, $seconds) { $args = func_get_args(); return $this->_addCommand('setAndExpire', $args); }

/**
* Increment the number value of key by integer
Expand Down Expand Up @@ -336,8 +336,8 @@ public function substring($key, $start, $end = -1) { $args = func_get_args(); re
/**
* Append value to a end of string key
*
* @param $key Key name
* @param $value Value
* @param string $key Key name
* @param mixed $value Value
* @return Rediska_Pipeline
*/
public function append($key, $value) { $args = func_get_args(); return $this->_addCommand('append', $args); }
Expand Down Expand Up @@ -593,6 +593,16 @@ public function getFromSortedSetByScore($key, $min, $max, $withScores = false, $
*/
public function getSortedSetLength($key) { $args = func_get_args(); return $this->_addCommand('getSortedSetLength', $args); }

/**
* Get count of members from sorted set by min and max score
*
* @param string $key Key name
* @param number $min Min score
* @param number $max Max score
* @return Rediska_Pipeline
*/
public function getSortedSetLengthByScore($key, $min, $max) { $args = func_get_args(); return $this->_addCommand('getSortedSetLengthByScore', $args); }

/**
* Increment score of sorted set element
*
Expand Down
22 changes: 16 additions & 6 deletions library/Rediska/Transaction.php
Expand Up @@ -354,12 +354,12 @@ public function get($keyOrKeys) { $args = func_get_args(); return $this->_addCom
/**
* Set + Expire atomic command
*
* @param string $key Key name
* @param mixed $value Value
* @param integer $time Expire time
* @param string $key Key name
* @param mixed $value Value
* @param integer $seconds Expire time in seconds
* @return Rediska_Transaction
*/
public function setAndExpire($key, $value, $time) { $args = func_get_args(); return $this->_addCommand('setAndExpire', $args); }
public function setAndExpire($key, $value, $seconds) { $args = func_get_args(); return $this->_addCommand('setAndExpire', $args); }

/**
* Increment the number value of key by integer
Expand Down Expand Up @@ -392,8 +392,8 @@ public function substring($key, $start, $end = -1) { $args = func_get_args(); re
/**
* Append value to a end of string key
*
* @param $key Key name
* @param $value Value
* @param string $key Key name
* @param mixed $value Value
* @return Rediska_Transaction
*/
public function append($key, $value) { $args = func_get_args(); return $this->_addCommand('append', $args); }
Expand Down Expand Up @@ -649,6 +649,16 @@ public function getFromSortedSetByScore($key, $min, $max, $withScores = false, $
*/
public function getSortedSetLength($key) { $args = func_get_args(); return $this->_addCommand('getSortedSetLength', $args); }

/**
* Get count of members from sorted set by min and max score
*
* @param string $key Key name
* @param number $min Min score
* @param number $max Max score
* @return Rediska_Transaction
*/
public function getSortedSetLengthByScore($key, $min, $max) { $args = func_get_args(); return $this->_addCommand('getSortedSetLengthByScore', $args); }

/**
* Increment score of sorted set element
*
Expand Down

0 comments on commit c3d0862

Please sign in to comment.