Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions core/Base/Listable.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,58 +8,58 @@
* License, or (at your option) any later version. *
* *
***************************************************************************/

interface Listable extends Iterator, ArrayAccess, Countable, SeekableIterator
{
/**
* Push new list item to the tail of list
*
* @return Listable
*
* @return Listable
*/
public function append($value);

/**
* Push new list item to the head of list
*
* @return Listable
*
* @return Listable
*/
public function prepend($value);

/**
* Trims $length items starting from @start
*
* @return Listable
*
* @return Listable
*/
public function trim($start, $length);

/**
* Truncates list
*
* @return Listable
*
* @return Listable
*/
public function clear();

/**
* @return mixed
* @return mixed
*/
public function get($index);

/**
* Returns the last element of list and removing it
*
* @return mixed
*
* @return mixed
*/
public function pop();

/**
* @return Listable
* @return Listable
*/
public function set($index, $value);

/**
* Returns sublist from $start to $start+$length
*
* @return array
*
* @return array
*/
public function range($start, $length);
}
16 changes: 8 additions & 8 deletions core/DB/NoSQL/RedisNoSQL.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class RedisNoSQL extends CachePeer implements ListGenerator
* @param type $host
* @param type $port
* @param type $timeout
* @return RedisNoSQL
* @return RedisNoSQL
*/
public static function create(
$host = self::DEFAULT_HOST,
Expand Down Expand Up @@ -142,8 +142,8 @@ public function increment($key, $value)
}

/**
* @param string $key
*
* @param string $key
*
* @return RedisNoSQLList
*/
public function fetchList($key, $timeout = null)
Expand All @@ -154,8 +154,8 @@ public function fetchList($key, $timeout = null)
}

/**
* @param string $key
*
* @param string $key
*
* @return RedisNoSQLSet
*/
public function fetchSet($key)
Expand All @@ -164,8 +164,8 @@ public function fetchSet($key)
}

/**
* @param string $key
*
* @param string $key
*
* @return RedisNoSQLHash
*/
public function fetchHash($key)
Expand Down Expand Up @@ -196,7 +196,7 @@ protected function store($action, $key, $value, $expires = Cache::EXPIRES_MEDIUM

protected function ensureTriedToConnect()
{
if ($this->triedConnect)
if ($this->triedConnect)
return $this;

$this->triedConnect = true;
Expand Down
6 changes: 3 additions & 3 deletions core/DB/NoSQL/RedisNoSQLList.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(Redis $redis, $key, $timeout = null)

/**
* @param mixed $value
* @return RedisList
* @return RedisList
*/
public function append($value)
{
Expand All @@ -39,7 +39,7 @@ public function append($value)

/**
* @param mixed $value
* @return RedisList
* @return RedisList
*/
public function prepend($value)
{
Expand All @@ -52,7 +52,7 @@ public function prepend($value)
}

/**
* @return RedisList
* @return RedisList
*/
public function clear()
{
Expand Down