Redis
class Redis (View source)
Methods
Create a new Redis instance. If passed sufficient information in the options array it is also possible to connect to an instance at the same time.
No description
Compress a value with the currently configured compressor as set with Redis::setOption().
Uncompress the provided argument that has been compressed with the currently configured compressor as set with Redis::setOption().
Prefix the passed argument with the currently set key prefix as set with Redis::setOption().
Serialize the provided value with the currently set serializer as set with Redis::setOption().
Unserialize the passed argument with the currently set serializer as set with Redis::setOption().
Pack the provided value with the configured serializer and compressor as set with Redis::setOption().
Unpack the provided value with the configured compressor and serializer as set with Redis::setOption().
No description
Append data to a Redis STRING key.
Authenticate a Redis connection after its been established.
Execute a save of the Redis database in the background.
Asynchronously rewrite Redis' append-only file
Count the number of set bits in a Redis string.
No description
Return the position of the first bit set to 0 or 1 in a string.
Pop an element off the beginning of a Redis list or lists, potentially blocking up to a specified timeout. This method may be called in two distinct ways, of which examples are provided below.
Pop an element off of the end of a Redis list or lists, potentially blocking up to a specified timeout.
Pop an element from the end of a Redis list, pushing it to the beginning of another Redis list, optionally blocking up to a specified timeout.
POP the maximum scoring element off of one or more sorted sets, blocking up to a specified timeout if no elements are available.
POP the minimum scoring element off of one or more sorted sets, blocking up to a specified timeout if no elements are available
POP one or more elements from one or more sorted sets, blocking up to a specified amount of time when no elements are available.
POP one or more of the highest or lowest scoring elements from one or more sorted sets.
Pop one or more elements from one or more Redis LISTs, blocking up to a specified timeout when no elements are available.
Pop one or more elements off of one or more Redis LISTs.
Reset any last error on the connection to NULL
No description
No description
No description
Execute the Redis CONFIG command in a variety of ways.
No description
Make a copy of a key.
Return the number of keys in the currently selected Redis database.
No description
Decrement a Redis integer by 1 or a provided value.
Decrement a redis integer by a value
Delete one or more keys from Redis.
Discard a transaction currently in progress.
Dump Redis' internal binary representation of a key.
Have Redis repeat back an arbitrary string to the client.
Execute a LUA script on the redis server.
This is simply the read-only variant of eval, meaning the underlying script may not modify data in redis.
Execute a LUA script on the server but instead of sending the script, send the SHA1 hash of the script.
This is simply the read-only variant of evalsha, meaning the underlying script may not modify data in redis.
Execute either a MULTI or PIPELINE block and return the array of replies.
Test if one or more keys exist.
Sets an expiration in seconds on the key in question. If connected to redis-server >= 7.0.0 you may send an additional "mode" argument which modifies how the command will execute.
Set a key to expire at an exact unix timestamp.
No description
Get the expiration of a given key as a unix timestamp
Get the expriation timestamp of a given Redis key but in milliseconds.
Deletes every key in all Redis databases
Deletes all the keys of the currently selected database.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Get the authentication information on the connection, if any.
No description
No description
Get the database number PhpRedis thinks we're connected to.
No description
Return the host or Unix socket we are connected to.
Get the last error returned to us from Redis, if any.
Returns whether the connection is in ATOMIC, MULTI, or PIPELINE mode
Retrieve the value of a configuration setting as set by Redis::setOption()
Get the persistent connection ID, if there is one.
Get the port we are connected to. This number will be zero if we are connected to a unix socket.
Retrieve a substring of a string by index.
Get the longest common subsequence between two string keys.
Get the currently set read timeout on the connection.
Sets a key and returns any previously set value, if the key already existed.
Retrieve any set connection timeout
No description
Remove one or more fields from a hash.
Checks whether a field exists in a hash.
No description
Read every field and value from a hash.
Increment a hash field's value by an integer
Increment a hash field by a floating point value
Retrieve all of the fields of a hash.
Get the number of fields in a hash.
Get one or more fields from a hash.
Add or update one or more hash fields and values
Get one or more random field from a hash.
No description
Set a hash field and value, but only if that field does not exist
Get the string length of a hash field
Get all of the values from a hash.
Iterate over the fields and values of a hash in an incremental fashion.
Increment a key's value, optionally by a specifc amount.
Increment a key by a specific integer value
Increment a numeric key by a floating point value.
Retrieve information about the connected redis-server. If no arguments are passed to this function, redis will return every info field. Alternatively you may pass a specific section you want returned (e.g. 'server', or 'memory') to receive only information pertaining to that section.
Check if we are currently connected to a Redis instance.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Sets an expiration in milliseconds on a given key. If connected to Redis >= 7.0.0 you can pass an optional mode argument that modifies how the command will execute.
Set a key's expiration to a specific Unix Timestamp in milliseconds. If connected to Redis >= 7.0.0 you can pass an optional 'mode' argument.
Add one or more elements to a Redis HyperLogLog key
Retrieve the cardinality of a Redis HyperLogLog key.
Merge one or more source HyperLogLog sets into a destination set.
PING the redis server with an optional string argument.
Enter into pipeline mode.
No description
Subscribe to one or more glob-style patterns
Get a keys time to live in milliseconds.
Publish a message to a pubsub channel
No description
Unsubscribe from one or more channels by pattern
Pop one or more elements from the end of a list.
Return a random key from the current database
Execute any arbitrary Redis command by name.
Unconditionally rename a key from $old_name to $new_name
Renames $key_src to $key_dst but only if newkey does not exist.
Reset the state of the connection.
Restore a key by the binary payload generated by the DUMP command.
Query whether the connected instance is a primary or replica
Atomically pop an element off the end of a Redis LIST and push it to the beginning of another.
Add one or more values to a Redis SET key.
Add one ore more values to a Redis SET key. This is an alternative to Redis::sadd() but instead of being variadic, takes a single array of values.
Given one or more Redis SETS, this command returns all of the members from the first set that are not in any subsequent set.
This method performs the same operation as SDIFF except it stores the resulting diff values in a specified destination key.
Given one or more Redis SET keys, this command will return all of the elements that are in every one.
Compute the intersection of one or more sets and return the cardinality of the result.
Perform the intersection of one or more Redis SETs, storing the result in a destination key, rather than returning them.
Retrieve every member from a set key.
Check if one or more values are members of a set.
Pop a member from one set and push it onto another. This command will create the destination set if it does not currently exist.
Remove one or more elements from a set.
Retrieve one or more random members of a set.
Returns the union of one or more Redis SET keys.
Perform a union of one or more Redis SET keys and store the result in a new set
Persist the Redis database to disk. This command will block the server until the save is completed. For a nonblocking alternative, see Redis::bgsave().
Incrementally scan the Redis keyspace, with optional pattern and type matching.
Retrieve the number of members in a Redis set.
An administrative command used to interact with LUA scripts stored on the server.
Select a specific Redis database.
Create or set a Redis STRING key to a value.
Set a specific bit in a Redis string to zero or one
Update or append to a Redis string at a specific starting index
Set a configurable option on the Redis object.
Set a Redis STRING key with a specific expiration in seconds.
Set a key to a value, but only if that key does not already exist.
Check whether a given value is the member of a Redis SET.
Turn a redis instance into a replica of another or promote a replica to a primary.
Used to turn a Redis instance into a replica of another, or to remove replica status promoting the instance to a primary.
Update one or more keys last modified metadata.
Interact with Redis' slowlog functionality in various ways, depending on the value of 'operation'.
Sort the contents of a Redis key in various ways.
This is simply a read-only variant of the sort command
No description
No description
No description
No description
Remove one or more values from a Redis SET key.
Scan the members of a redis SET key.
Retrieve the length of a Redis STRING key.
Subscribe to one or more Redis pubsub channels.
Atomically swap two Redis databases so that all of the keys in the source database will now be in the destination database and vice-versa.
Retrieve the server time from the connected Redis instance.
Get the amount of time a Redis key has before it will expire, in seconds.
Get the type of a given Redis key.
Delete one or more keys from the Redis database. Unlike this operation, the actual deletion is asynchronous, meaning it is safe to delete large keys without fear of Redis blocking for a long period of time.
Unsubscribe from one or more subscribed channels.
Remove any previously WATCH'ed keys in a transaction.
Block the client up to the provided timeout until a certain number of replicas have confirmed recieving them.
No description
Append a message to a stream.
No description
No description
Remove one or more specific IDs from a stream.
XGROUP
Retrieve information about a stream key.
Get the number of messages in a Redis STREAM key.
Interact with stream messages that have been consumed by a consumer group but not yet acknowledged with XACK.
Get a range of entries from a STREAM key.
Consume one or more unconsumed elements in one or more streams.
Read one or more messages using a consumer group.
Get a range of entries from a STREAM ke in reverse cronological order.
Truncate a STREAM key in various ways.
Add one or more elements and scores to a Redis sorted set.
Return the number of elements in a sorted set.
Count the number of members in a sorted set with scores inside a provided range.
Create or increment the score of a member in a Redis sorted set
Count the number of elements in a sorted set whos members fall within the provided lexographical range.
Retrieve the score of one or more members in a sorted set.
Pop one or more of the highest scoring elements from a sorted set.
Pop one or more of the lowest scoring elements from a sorted set.
Retrieve a range of elements of a sorted set between a start and end point.
Retrieve a range of elements from a sorted set by legographical range.
Retrieve a range of members from a sorted set by their score.
This command is similar to ZRANGE except that instead of returning the values directly it will store them in a destination key provided by the user
Retrieve one or more random members from a Redis sorted set.
Get the rank of a member of a sorted set, by score.
Remove one or more members from a Redis sorted set.
Remove zero or more elements from a Redis sorted set by legographical range.
Remove one or more members of a sorted set by their rank.
Remove one or more members of a sorted set by their score.
List the members of a Redis sorted set in reverse order
List members of a Redis sorted set within a legographical range, in reverse order.
List elements from a Redis sorted set by score, highest to lowest
Retrieve a member of a sorted set by reverse rank.
Get the score of a member of a sorted set.
Given one or more sorted set key names, return every element that is in the first set but not any of the others.
Store the difference of one or more sorted sets in a destination sorted set.
Compute the intersection of one or more sorted sets and return the members
Similar to ZINTER but instead of returning the intersected values, this command returns the cardinality of the intersected set.
Compute the intersection of one ore more sorted sets storing the result in a new sorted set.
Scan the members of a sorted set incrementally, using a cursor
Retrieve the union of one or more sorted sets
Perform a union on one or more Redis sets and store the result in a destination sorted set.
Details
Redis
__construct(array $options = null)
Create a new Redis instance. If passed sufficient information in the options array it is also possible to connect to an instance at the same time.
NOTE: Below is an example options array with various setting
$options = [
'host' => 'localhost',
'port' => 6379,
'readTimeout' => 2.5,
'connectTimeout' => 2.5,
'persistent' => true,
// Valid formats: NULL, ['user', 'pass'], 'pass', or ['pass']
'auth' => ['phpredis', 'phpredis'],
// See PHP stream options for valid SSL configuration settings.
'ssl' => ['verify_peer' => false],
// How quickly to retry a connection after we time out or it closes.
// Note that this setting is overridden by 'backoff' strategies.
'retryInterval' => 100,
// Which backoff algorithm to use. 'decorrelated jitter' is
// likely the best one for most solution, but there are many
// to choose from:
// REDIS_BACKOFF_ALGORITHM_DEFAULT
// REDIS_BACKOFF_ALGORITHM_CONSTANT
// REDIS_BACKOFF_ALGORITHM_UNIFORM
// REDIS_BACKOFF_ALGORITHM_EXPONENTIAL
// REDIS_BACKOFF_ALGORITHM_FULL_JITTER
// REDIS_BACKOFF_ALGORITHM_EQUAL_JITTER
// REDIS_BACKOFF_ALGORITHM_DECORRELATED_JITTER
// 'base', and 'cap' are in milliseconds and represent the first
// delay redis will use when reconnecting, and the maximum delay
// we will reach while retrying.
'backoff' => [
'algorithm' => Redis::BACKOFF_ALGORITHM_DECORRELATED_JITTER,
'base' => 500,
'cap' => 750,
]
];
Note: If you do wish to connect via the constructor, only 'host' is strictly required, which will cause PhpRedis to connect to that host on Redis' default port (6379).
__destruct()
No description
string
_compress(string $value)
Compress a value with the currently configured compressor as set with Redis::setOption().
string
_uncompress(string $value)
Uncompress the provided argument that has been compressed with the currently configured compressor as set with Redis::setOption().
string
_prefix(string $key)
Prefix the passed argument with the currently set key prefix as set with Redis::setOption().
string
_serialize(mixed $value)
Serialize the provided value with the currently set serializer as set with Redis::setOption().
mixed
_unserialize(string $value)
Unserialize the passed argument with the currently set serializer as set with Redis::setOption().
string
_pack(mixed $value)
Pack the provided value with the configured serializer and compressor as set with Redis::setOption().
mixed
_unpack(string $value)
Unpack the provided value with the configured compressor and serializer as set with Redis::setOption().
mixed
acl(string $subcmd, string ...$args)
No description
Redis|int|false
append(string $key, mixed $value)
Append data to a Redis STRING key.
$redis = new Redis(['host' => 'localhost']);
$redis->set('foo', 'hello);
var_dump($redis->append('foo', 'world'));
Redis|bool
auth(mixed $credentials)
Authenticate a Redis connection after its been established.
$redis->auth('password'); $redis->auth(['password']); $redis->auth(['username', 'password']);
Redis|bool
bgSave()
Execute a save of the Redis database in the background.
Redis|bool
bgrewriteaof()
Asynchronously rewrite Redis' append-only file
Redis|int|false
bitcount(string $key, int $start = 0, int $end = -1, bool $bybit = false)
Count the number of set bits in a Redis string.
Redis|int|false
bitop(string $operation, string $deskey, string $srckey, string ...$other_keys)
No description
Redis|int|false
bitpos(string $key, bool $bit, int $start = 0, int $end = -1, bool $bybit = false)
Return the position of the first bit set to 0 or 1 in a string.
Redis|array|null|false
blPop(string|array $key_or_keys, string|float|int $timeout_or_key, mixed ...$extra_args)
Pop an element off the beginning of a Redis list or lists, potentially blocking up to a specified timeout. This method may be called in two distinct ways, of which examples are provided below.
Redis|array|null|false
brPop(string|array $key_or_keys, string|float|int $timeout_or_key, mixed ...$extra_args)
Pop an element off of the end of a Redis list or lists, potentially blocking up to a specified timeout.
The calling convention is identical to Redis::blPop() so see that documentation for more details.
Redis|string|false
brpoplpush(string $src, string $dst, int|float $timeout)
Pop an element from the end of a Redis list, pushing it to the beginning of another Redis list, optionally blocking up to a specified timeout.
Redis|array|false
bzPopMax(string|array $key, string|int $timeout_or_key, mixed ...$extra_args)
POP the maximum scoring element off of one or more sorted sets, blocking up to a specified timeout if no elements are available.
Following are examples of the two main ways to call this method.
NOTE: We reccomend calling this function with an array and a timeout as the other strategy may be deprecated in future versions of PhpRedis
Redis|array|false
bzPopMin(string|array $key, string|int $timeout_or_key, mixed ...$extra_args)
POP the minimum scoring element off of one or more sorted sets, blocking up to a specified timeout if no elements are available
This command is identical in semantics to bzPopMax so please see that method for more information.
Redis|array|null|false
bzmpop(float $timeout, array $keys, string $from, int $count = 1)
POP one or more elements from one or more sorted sets, blocking up to a specified amount of time when no elements are available.
Redis|array|null|false
zmpop(array $keys, string $from, int $count = 1)
POP one or more of the highest or lowest scoring elements from one or more sorted sets.
Redis|array|null|false
blmpop(float $timeout, array $keys, string $from, int $count = 1)
Pop one or more elements from one or more Redis LISTs, blocking up to a specified timeout when no elements are available.
Redis|array|null|false
lmpop(array $keys, string $from, int $count = 1)
Pop one or more elements off of one or more Redis LISTs.
bool
clearLastError()
Reset any last error on the connection to NULL
mixed
client(string $opt, mixed ...$args)
No description
bool
close()
No description
mixed
command(string $opt = null, string|array $arg)
No description
mixed
config(string $operation, array|string|null $key_or_settings = NULL, string|null $value = NULL)
Execute the Redis CONFIG command in a variety of ways.
What the command does in particular depends on the $operation
qualifier.
Operations that PhpRedis supports are: RESETSTAT, REWRITE, GET, and SET.
bool
connect(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = null, int $retry_interval = 0, float $read_timeout = 0, array $context = null)
No description
Redis|bool
copy(string $src, string $dst, array $options = null)
Make a copy of a key.
$redis = new Redis(['host' => 'localhost']);
Redis|int|false
dbSize()
Return the number of keys in the currently selected Redis database.
Redis|string
debug(string $key)
No description
Redis|int|false
decr(string $key, int $by = 1)
Decrement a Redis integer by 1 or a provided value.
$redis = new Redis(['host' => 'localhost']);
$redis->set('counter', 3);
var_dump($redis->decr('counter'));
var_dump($redis->decr('counter', 2));
Redis|int|false
decrBy(string $key, int $value)
Decrement a redis integer by a value
$redis = new Redis(['host' => 'localhost');
$redis->set('counter', 3);
var_dump($redis->decrby('counter', 1));
var_dump($redis->decrby('counter', 2));
Redis|int|false
del(array|string $key, string ...$other_keys)
Delete one or more keys from Redis.
This method can be called in two distinct ways. The first is to pass a single array of keys to delete, and the second is to pass N arguments, all names of keys. See below for an example of both strategies.
$redis = new Redis(['host' => 'localhost']);
for ($i = 0; $i < 5; $i++) {
$redis->set("key:$i", "val:$i");
}
var_dump($redis->del('key:0', 'key:1'));
var_dump($redis->del(['key:2', 'key:3', 'key:4']));
Redis|int|false
delete(array|string $key, string ...$other_keys)
deprecated
deprecated
No description
Redis|bool
discard()
Discard a transaction currently in progress.
$redis = new Redis(['host' => 'localhost']);
$redis->multi()->set('foo', 'bar')->get('foo');
// Redis::MULTI
$redis->getMode();
// Discard the in-progress transaction
$redis->discard();
// Redis::ATOMIC
$redis->getMode();
Redis|string
dump(string $key)
Dump Redis' internal binary representation of a key.
$redis = new Redis(['host' => 'localhost']);
$redis->del('zset');
$redis->zadd('zset', 0, 'zero', 1, 'one', 2, 'two');
// Retrieve the binary representation of the zset
$binary = $redis->dump('zset');
// Retore it to a different name
$redis->restore('new-zset', 0, $binary);
$redis->zRange('new-zset', 0, -1, true);
Redis|string|false
echo(string $str)
Have Redis repeat back an arbitrary string to the client.
$redis = new Redis(['host' => 'localhost']);
var_dump($redis->echo('Hello, World'));
mixed
eval(string $script, array $args = [], int $num_keys = 0)
Execute a LUA script on the redis server.
mixed
eval_ro(string $script_sha, array $args = [], int $num_keys = 0)
This is simply the read-only variant of eval, meaning the underlying script may not modify data in redis.
mixed
evalsha(string $sha1, array $args = [], int $num_keys = 0)
Execute a LUA script on the server but instead of sending the script, send the SHA1 hash of the script.
mixed
evalsha_ro(string $sha1, array $args = [], int $num_keys = 0)
This is simply the read-only variant of evalsha, meaning the underlying script may not modify data in redis.
Redis|array|false
exec()
Execute either a MULTI or PIPELINE block and return the array of replies.
$redis = new Redis(['host' => 'localhost']);
$res = $redis->multi()
->set('foo', 'bar')
->get('foo')
->del('list')
->rpush('list', 'one', 'two', 'three')
->exec();
var_dump($res);
Redis|int|bool
exists(mixed $key, mixed ...$other_keys)
Test if one or more keys exist.
$redis = new Redis(['host' => 'localhost']);
$redis->multi()
->mset(['k1' => 'v1', 'k2' => 'v2', 'k3' => 'v3', 'k4' => 'v4'])
->exec();
// Using a single array of keys
var_dump($redis->exists(['k1', 'k2', 'k3']));
// Calling via variadic arguments
var_dump($redis->exists('k4', 'k5', 'notakey'));
// --- OUTPUT ---
// int(3)
// int(1)
Redis|bool
expire(string $key, int $timeout, string|null $mode = NULL)
Sets an expiration in seconds on the key in question. If connected to redis-server >= 7.0.0 you may send an additional "mode" argument which modifies how the command will execute.
Redis|bool
expireAt(string $key, int $timestamp, string|null $mode = NULL)
Set a key to expire at an exact unix timestamp.
Redis|bool
failover(array|null $to = null, bool $abort = false, int $timeout = 0)
No description
Redis|int|false
expiretime(string $key)
Get the expiration of a given key as a unix timestamp
$redis = new Redis(['host' => 'localhost']);
$redis->set('expiry-key', 'this will last a very long time');
// Expire this key at 2222/02/22 02:22:22 GMT
$redis->expireAt('expiry-key',<PHONE_NUMBER>);
var_dump($redis->expiretime('expiry-key'));
Redis|int|false
pexpiretime(string $key)
Get the expriation timestamp of a given Redis key but in milliseconds.
Redis|bool
flushAll(bool|null $sync = null)
Deletes every key in all Redis databases
Redis|bool
flushDB(bool|null $sync = null)
Deletes all the keys of the currently selected database.
Redis|int|false
geoadd(string $key, float $lng, float $lat, string $member, mixed ...$other_triples_and_options)
No description
Redis|float|false
geodist(string $key, string $src, string $dst, string|null $unit = null)
No description
Redis|array|false
geohash(string $key, string $member, string ...$other_members)
No description
Redis|array|false
geopos(string $key, string $member, string ...$other_members)
No description
mixed
georadius(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
No description
mixed
georadius_ro(string $key, float $lng, float $lat, float $radius, string $unit, array $options = [])
No description
mixed
georadiusbymember(string $key, string $member, float $radius, string $unit, array $options = [])
No description
mixed
georadiusbymember_ro(string $key, string $member, float $radius, string $unit, array $options = [])
No description
array
geosearch(string $key, array|string $position, array|int|float $shape, string $unit, array $options = [])
No description
Redis|array|int|false
geosearchstore(string $dst, string $src, array|string $position, array|int|float $shape, string $unit, array $options = [])
No description
mixed
get(string $key)
No description
mixed
getAuth()
Get the authentication information on the connection, if any.
Redis|int|false
getBit(string $key, int $idx)
No description
Redis|string|bool
getEx(string $key, array $options = [])
No description
int
getDBNum()
Get the database number PhpRedis thinks we're connected to.
This value is updated internally in PhpRedis each time Redis::select is called.
Redis|string|bool
getDel(string $key)
No description
string
getHost()
Return the host or Unix socket we are connected to.
string|null
getLastError()
Get the last error returned to us from Redis, if any.
int
getMode()
Returns whether the connection is in ATOMIC, MULTI, or PIPELINE mode
mixed
getOption(int $option)
Retrieve the value of a configuration setting as set by Redis::setOption()
string|null
getPersistentID()
Get the persistent connection ID, if there is one.
int
getPort()
Get the port we are connected to. This number will be zero if we are connected to a unix socket.
Redis|string|false
getRange(string $key, int $start, int $end)
Retrieve a substring of a string by index.
$redis = new Redis(['host' => 'localhost']);
$word = 'Supercalifragilisticexpialidocious';
$redis->set('silly-word', $word);
// string "super"
var_dump($redis->getRange('silly-word', 0, 4));
// string(7) "docious"
var_dump($redis->getRange('silly-word', -7, -1));
Redis|string|array|int|false
lcs(string $key1, string $key2, array|null $options = NULL)
Get the longest common subsequence between two string keys.
$redis = new Redis(['host' => 'localhost']);
$redis->set('seq1', 'gtaggcccgcacggtctttaatgtatccctgtttaccatgccatacctgagcgcatacgc');
$redis->set('seq2', 'aactcggcgcgagtaccaggccaaggtcgttccagagcaaagactcgtgccccgctgagc');
// string(37) "acccgcacggcaagtcgttccagcaactggcgctagc"
var_dump($redis->lcs('seq1', 'seq2'));
float
getReadTimeout()
Get the currently set read timeout on the connection.
Redis|string|false
getset(string $key, mixed $value)
Sets a key and returns any previously set value, if the key already existed.
$redis = new Redis(['host' => 'localhost']);
$redis->del('captain');
// bool(false)
var_dump($redis->getset('captain', 'Pike'));
// string(4) "Pike"
var_dump($redis->getset('captain', 'Kirk'));
float|false
getTimeout()
Retrieve any set connection timeout
int|false
getTransferredBytes()
No description
Redis|int|false
hDel(string $key, string $field, string ...$other_fields)
Remove one or more fields from a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('people');
$redis->hmset('comms', ['Alice' => 'ecc', 'Bob' => 'rsa', 'Mallory' => 'haxx00r']);
// int(1)
$redis->hDel('comms', 'Mallory', 'Archibald');
Redis|bool
hExists(string $key, string $field)
Checks whether a field exists in a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('captains');
$redis->hmset('captains', ['Kirk' => 'Enterprise', 'Picard' => 'Enterprise-D', 'Sisko' => 'Defiant']);
$redis->hExists('captains', 'Pike');
$redis->hExists('captains', 'Picard');
mixed
hGet(string $key, string $member)
No description
Redis|array|false
hGetAll(string $key)
Read every field and value from a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('comms');
$redis->hmset('comms', ['Alice' => 'ecc', 'Bob' => 'rsa', 'Mallory' => 'haxx00r']);
// array(3) {
// ["Alice"]=>
// string(3) "ecc"
// ["Bob"]=>
// string(3) "rsa"
// ["Mallory"]=>
// string(7) "haxx00r"
// }
$redis->hGetAll('comms');
Redis|int|false
hIncrBy(string $key, string $field, int $value)
Increment a hash field's value by an integer
$redis = new Redis(['host' => 'localhost']);
$redis->del('player');
$redis->hmset('player', ['name' => 'Bob', 'level' => 1]);
// int(2)
$redis->hIncrBy('player', 'level', 1);
// int(5)
$redis->hIncrBy('player', 'level', 3);
Redis|float|false
hIncrByFloat(string $key, string $field, float $value)
Increment a hash field by a floating point value
$redis = new Redis(['host' => 'localhost']);
$redis->del('trig-numbers')
// float(3.1415926)
$pi = $redis->hIncrByFloat('trig-numbers', 'pi', 3.1415926);
// float(6.2831852)
$redis->hIncrByFloat('trig-numbers', 'tau', 2 * $pi);
Redis|array|false
hKeys(string $key)
Retrieve all of the fields of a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('ships');
$redis->hmset('ships', ['Enterprise' => 'NCC-1701D', 'Defiant' => 'NX-74205', 'Voyager' => 'NCC-74656']);
// array(3) {
// [0]=>
// string(10) "Enterprise"
// [1]=>
// string(7) "Defiant"
// [2]=>
// string(7) "Voyager"
// }
$redis->hKeys('ships');
Redis|int|false
hLen(string $key)
Get the number of fields in a hash.
Redis|array|false
hMget(string $key, array $fields)
Get one or more fields from a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('player:1');
$redis->hmset('player:1', ['name' => 'Alice', 'age' => '26', 'score' => '1337']);
// array(2) {
// ["name"]=>
// string(5) "Alice"
// ["score"]=>
// string(4) "1337"
// }
$redis->hmget('player:1', ['name', 'score']);
Redis|bool
hMset(string $key, array $fieldvals)
Add or update one or more hash fields and values
$redis = new Redis(['host' => 'localhost']);
$redis->hmset('updates', ['status' => 'starting', 'elapsed' => 0]);
Redis|string|array
hRandField(string $key, array $options = null)
Get one or more random field from a hash.
$redis = new Redis(['host' => 'localhost']);
$redis->del('settings');
$redis->hmset('settings', ['path' => '/', 'state' => 'active', 'jobs' => 15]);
$redis->hrandfield('settings');
$redis->hrandfield('settings', ['count' => 2, 'withvalues' => true]);
Redis|int|false
hSet(string $key, string $member, mixed $value)
No description
Redis|bool
hSetNx(string $key, string $field, string $value)
Set a hash field and value, but only if that field does not exist
$redis = new Redis(['host' => 'localhost']);
$redis->del('player:1');
$redis->hmset('player:1', ['name' => 'bob', 'score' => 0]);
// bool(true)
var_dump($redis->hsetnx('player:1', 'lock', 'enabled'));
// bool(false)
var_dump($redis->hsetnx('player:1', 'lock', 'enabled'));
Redis|int|false
hStrLen(string $key, string $field)
Get the string length of a hash field
Redis|array|false
hVals(string $key)
Get all of the values from a hash.
Redis|array|bool
hscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0)
Iterate over the fields and values of a hash in an incremental fashion.
Redis|int|false
incr(string $key, int $by = 1)
Increment a key's value, optionally by a specifc amount.
Redis|int|false
incrBy(string $key, int $value)
Increment a key by a specific integer value
Redis|float|false
incrByFloat(string $key, float $value)
Increment a numeric key by a floating point value.
Redis|array|false
info(string ...$sections)
Retrieve information about the connected redis-server. If no arguments are passed to this function, redis will return every info field. Alternatively you may pass a specific section you want returned (e.g. 'server', or 'memory') to receive only information pertaining to that section.
If connected to Redis server >= 7.0.0 you may pass multiple optional sections.
bool
isConnected()
Check if we are currently connected to a Redis instance.
Redis|array|false
keys(string $pattern)
No description
Redis|int|false
lInsert(string $key, string $pos, mixed $pivot, mixed $value)
No description
Redis|int|false
lLen(string $key)
No description
Redis|string|false
lMove(string $src, string $dst, string $wherefrom, string $whereto)
No description
Redis|bool|string|array
lPop(string $key, int $count = 0)
No description
Redis|null|bool|int|array
lPos(string $key, mixed $value, array $options = null)
No description
int|Redis
lPush(string $key, mixed ...$elements)
No description
Redis|int|false
rPush(string $key, mixed ...$elements)
No description
Redis|int|false
lPushx(string $key, mixed $value)
No description
Redis|int|false
rPushx(string $key, mixed $value)
No description
Redis|bool
lSet(string $key, int $index, mixed $value)
No description
int
lastSave()
No description
mixed
lindex(string $key, int $index)
No description
Redis|array|false
lrange(string $key, int $start, int $end)
No description
int|Redis|false
lrem(string $key, mixed $value, int $count = 0)
No description
Redis|bool
ltrim(string $key, int $start, int $end)
No description
array|Redis
mget(array $keys)
No description
Redis|bool
migrate(string $host, int $port, string|array $key, int $dstdb, int $timeout, bool $copy = false, bool $replace = false, mixed $credentials = NULL)
No description
bool
move(string $key, int $index)
No description
Redis|bool
mset(array $key_values)
No description
Redis|bool
msetnx(array $key_values)
No description
bool|Redis
multi(int $value = Redis::MULTI)
No description
Redis|int|string|false
object(string $subcommand, string $key)
No description
bool
open(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL)
deprecated
deprecated
No description
bool
pconnect(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL)
No description
bool
persist(string $key)
No description
bool
pexpire(string $key, int $timeout, string|null $mode = NULL)
Sets an expiration in milliseconds on a given key. If connected to Redis >= 7.0.0 you can pass an optional mode argument that modifies how the command will execute.
Redis::expire() for a description of the mode argument.
Redis|bool
pexpireAt(string $key, int $timestamp, string|null $mode = NULL)
Set a key's expiration to a specific Unix Timestamp in milliseconds. If connected to Redis >= 7.0.0 you can pass an optional 'mode' argument.
Redis|int
pfadd(string $key, array $elements)
Add one or more elements to a Redis HyperLogLog key
Redis|int
pfcount(string $key)
Retrieve the cardinality of a Redis HyperLogLog key.
Redis|bool
pfmerge(string $dst, array $srckeys)
Merge one or more source HyperLogLog sets into a destination set.
Redis|string|bool
ping(string $message = NULL)
PING the redis server with an optional string argument.
bool|Redis
pipeline()
Enter into pipeline mode.
Pipeline mode is the highest performance way to send many commands to Redis as they are aggregated into one stream of commands and then all sent at once when the user calls Redis::exec().
NOTE: That this is shorthand for Redis::multi(Redis::PIPELINE)
bool
popen(string $host, int $port = 6379, float $timeout = 0, string $persistent_id = NULL, int $retry_interval = 0, float $read_timeout = 0, array $context = NULL)
deprecated
deprecated
No description
bool|Redis
psetex(string $key, int $expire, mixed $value)
No description
bool
psubscribe(array $patterns, callable $cb)
Subscribe to one or more glob-style patterns
Redis|int|false
pttl(string $key)
Get a keys time to live in milliseconds.
Redis|int|false
publish(string $channel, string $message)
Publish a message to a pubsub channel
mixed
pubsub(string $command, mixed $arg = null)
No description
Redis|array|bool
punsubscribe(array $patterns)
Unsubscribe from one or more channels by pattern
Redis|array|string|bool
rPop(string $key, int $count = 0)
Pop one or more elements from the end of a list.
Redis|string|false
randomKey()
Return a random key from the current database
mixed
rawcommand(string $command, mixed ...$args)
Execute any arbitrary Redis command by name.
Redis|bool
rename(string $old_name, string $new_name)
Unconditionally rename a key from $old_name to $new_name
Redis|bool
renameNx(string $key_src, string $key_dst)
Renames $key_src to $key_dst but only if newkey does not exist.
Redis|bool
reset()
Reset the state of the connection.
Redis|bool
restore(string $key, int $ttl, string $value, array|null $options = NULL)
Restore a key by the binary payload generated by the DUMP command.
mixed
role()
Query whether the connected instance is a primary or replica
Redis|string|false
rpoplpush(string $srckey, string $dstkey)
Atomically pop an element off the end of a Redis LIST and push it to the beginning of another.
Redis|int|false
sAdd(string $key, mixed $value, mixed ...$other_values)
Add one or more values to a Redis SET key.
int
sAddArray(string $key, array $values)
Add one ore more values to a Redis SET key. This is an alternative to Redis::sadd() but instead of being variadic, takes a single array of values.
Redis|array|false
sDiff(string $key, string ...$other_keys)
Given one or more Redis SETS, this command returns all of the members from the first set that are not in any subsequent set.
Redis|int|false
sDiffStore(string $dst, string $key, string ...$other_keys)
This method performs the same operation as SDIFF except it stores the resulting diff values in a specified destination key.
Redis|array|false
sInter(array|string $key, string ...$other_keys)
Given one or more Redis SET keys, this command will return all of the elements that are in every one.
Redis|int|false
sintercard(array $keys, int $limit = -1)
Compute the intersection of one or more sets and return the cardinality of the result.
Redis|int|false
sInterStore(array|string $key, string ...$other_keys)
Perform the intersection of one or more Redis SETs, storing the result in a destination key, rather than returning them.
Redis|array|false
sMembers(string $key)
Retrieve every member from a set key.
Redis|array|false
sMisMember(string $key, string $member, string ...$other_members)
Check if one or more values are members of a set.
Redis|bool
sMove(string $src, string $dst, mixed $value)
Pop a member from one set and push it onto another. This command will create the destination set if it does not currently exist.
Redis|string|array|false
sPop(string $key, int $count = 0)
Remove one or more elements from a set.
Redis|string|array|false
sRandMember(string $key, int $count = 0)
Retrieve one or more random members of a set.
Redis|array|false
sUnion(string $key, string ...$other_keys)
Returns the union of one or more Redis SET keys.
Redis|int|false
sUnionStore(string $dst, string $key, string ...$other_keys)
Perform a union of one or more Redis SET keys and store the result in a new set
Redis|bool
save()
Persist the Redis database to disk. This command will block the server until the save is completed. For a nonblocking alternative, see Redis::bgsave().
array|false
scan(int|null $iterator, string|null $pattern = null, int $count = 0, string $type = NULL)
Incrementally scan the Redis keyspace, with optional pattern and type matching.
A note about Redis::SCAN_NORETRY and Redis::SCAN_RETRY.
For convenience, PhpRedis can retry SCAN commands itself when Redis returns an empty array of keys with a nonzero iterator. This can happen when matching against a pattern that very few keys match inside a key space with a great many keys. The following example demonstrates how to use Redis::scan() with the option disabled and enabled.
<?php
$redis = new Redis(['host' => 'localhost']);
$redis->setOption(Redis::OPT_SCAN, Redis::SCAN_NORETRY);
$it = NULL;
do {
$keys = $redis->scan($it, '*zorg*');
foreach ($keys as $key) {
echo "KEY: $key\n";
}
} while ($it != 0);
$redis->setOption(Redis::OPT_SCAN, Redis::SCAN_RETRY);
$it = NULL;
// When Redis::SCAN_RETRY is enabled, we can use simpler logic, as we will never receive an
// empty array of keys when the iterator is nonzero.
while ($keys = $redis->scan($it, '*zorg*')) {
foreach ($keys as $key) {
echo "KEY: $key\n";
}
}
?>
Redis|int|false
scard(string $key)
Retrieve the number of members in a Redis set.
mixed
script(string $command, mixed ...$args)
An administrative command used to interact with LUA scripts stored on the server.
Redis|bool
select(int $db)
Select a specific Redis database.
Redis|string|bool
set(string $key, mixed $value, mixed $options = NULL)
Create or set a Redis STRING key to a value.
Redis|int|false
setBit(string $key, int $idx, bool $value)
Set a specific bit in a Redis string to zero or one
Redis|int|false
setRange(string $key, int $index, string $value)
Update or append to a Redis string at a specific starting index
bool
setOption(int $option, mixed $value)
Set a configurable option on the Redis object.
Following are a list of options you can set:
| OPTION | TYPE | DESCRIPTION |
|---|---|---|
| OPT_MAX_RETRIES | int | The maximum number of times Redis will attempt to reconnect if it gets disconnected, before throwing an exception. |
| OPT_SCAN | enum | Redis::OPT_SCAN_RETRY, or Redis::OPT_SCAN_NORETRY. Whether PhpRedis should automatically SCAN again when zero keys but a nonzero iterator are returned. |
| OPT_SERIALIZER | enum | Set the automatic data serializer.Redis::SERIALIZER_NONE Redis::SERIALIZER_PHP Redis::SERIALIZER_IGBINARY Redis::SERIALIZER_MSGPACK , Redis::SERIALIZER_JSON |
| OPT_PREFIX | string | A string PhpRedis will use to prefix every key we read or write. |
| OPT_READ_TIMEOUT | float | How long PhpRedis will block for a response from Redis before throwing a 'read error on connection' exception. |
| OPT_TCP_KEEPALIVE | bool | Set or disable TCP_KEEPALIVE on the connection. |
| OPT_COMPRESSION | enum | Set the compression algorithmRedis::COMPRESSION_NONE Redis::COMPRESSION_LZF Redis::COMPRESSION_LZ4 Redis::COMPRESSION_ZSTD |
| OPT_REPLY_LITERAL | bool | If set to true, PhpRedis will return the literal string Redis returns for LINE replies (e.g. '+OK'), rather than true . |
| OPT_COMPRESSION_LEVEL | int | Set a specific compression level if Redis is compressing data. |
| OPT_NULL_MULTIBULK_AS_NULL | bool | Causes PhpRedis to return NULL rather than false for NULL MULTIBULK replies |
| OPT_BACKOFF_ALGORITHM | enum | The exponential backoff strategy to use. |
| OPT_BACKOFF_BASE | int | The minimum delay between retries when backing off. |
| OPT_BACKOFF_CAP | int | The maximum delay between replies when backing off. |
Redis|bool
setex(string $key, int $expire, mixed $value)
Set a Redis STRING key with a specific expiration in seconds.
Redis|bool
setnx(string $key, mixed $value)
Set a key to a value, but only if that key does not already exist.
Redis|bool
sismember(string $key, mixed $value)
Check whether a given value is the member of a Redis SET.
Redis|bool
slaveof(string $host = NULL, int $port = 6379)
deprecated
deprecated
Turn a redis instance into a replica of another or promote a replica to a primary.
This method and the corresponding command in Redis has been marked deprecated and users should instead use Redis::replicaof() if connecting to redis-server
= 5.0.0.
Redis|bool
replicaof(string $host = NULL, int $port = 6379)
Used to turn a Redis instance into a replica of another, or to remove replica status promoting the instance to a primary.
Redis|int|false
touch(array|string $key_or_array, string ...$more_keys)
Update one or more keys last modified metadata.
mixed
slowlog(string $operation, int $length = 0)
Interact with Redis' slowlog functionality in various ways, depending on the value of 'operation'.
mixed
sort(string $key, array|null $options = null)
Sort the contents of a Redis key in various ways.
mixed
sort_ro(string $key, array|null $options = null)
This is simply a read-only variant of the sort command
array
sortAsc(string $key, string|null $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, string|null $store = null)
deprecated
deprecated
No description
array
sortAscAlpha(string $key, string|null $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, string|null $store = null)
deprecated
deprecated
No description
array
sortDesc(string $key, string|null $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, string|null $store = null)
deprecated
deprecated
No description
array
sortDescAlpha(string $key, string|null $pattern = null, mixed $get = null, int $offset = -1, int $count = -1, string|null $store = null)
deprecated
deprecated
No description
Redis|int|false
srem(string $key, mixed $value, mixed ...$other_values)
Remove one or more values from a Redis SET key.
array|false
sscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0)
Scan the members of a redis SET key.
Redis|int|false
strlen(string $key)
Retrieve the length of a Redis STRING key.
bool
subscribe(array $channels, callable $cb)
Subscribe to one or more Redis pubsub channels.
Redis|bool
swapdb(int $src, int $dst)
Atomically swap two Redis databases so that all of the keys in the source database will now be in the destination database and vice-versa.
Note: This command simply swaps Redis' internal pointer to the database and is therefore very fast, regardless of the size of the underlying databases.
Redis|array
time()
Retrieve the server time from the connected Redis instance.
Redis|int|false
ttl(string $key)
Get the amount of time a Redis key has before it will expire, in seconds.
Redis|int|false
type(string $key)
Get the type of a given Redis key.
Redis|int|false
unlink(array|string $key, string ...$other_keys)
Delete one or more keys from the Redis database. Unlike this operation, the actual deletion is asynchronous, meaning it is safe to delete large keys without fear of Redis blocking for a long period of time.
Redis|array|bool
unsubscribe(array $channels)
Unsubscribe from one or more subscribed channels.
Redis|bool
unwatch()
Remove any previously WATCH'ed keys in a transaction.
bool|Redis
watch(array|string $key, string ...$other_keys)
No description
int|false
wait(int $numreplicas, int $timeout)
Block the client up to the provided timeout until a certain number of replicas have confirmed recieving them.
int|false
xack(string $key, string $group, array $ids)
No description
Redis|string|false
xadd(string $key, string $id, array $values, int $maxlen = 0, bool $approx = false, bool $nomkstream = false)
Append a message to a stream.
Redis|bool|array
xautoclaim(string $key, string $group, string $consumer, int $min_idle, string $start, int $count = -1, bool $justid = false)
No description
Redis|bool|array
xclaim(string $key, string $group, string $consumer, int $min_idle, array $ids, array $options)
No description
Redis|int|false
xdel(string $key, array $ids)
Remove one or more specific IDs from a stream.
mixed
xgroup(string $operation, string $key = null, string $group = null, string $id_or_consumer = null, bool $mkstream = false, int $entries_read = -2)
XGROUP
Perform various operation on consumer groups for a particular Redis STREAM. What the command does is primarily based on which operation is passed.
mixed
xinfo(string $operation, string|null $arg1 = null, string|null $arg2 = null, int $count = -1)
Retrieve information about a stream key.
Redis|int|false
xlen(string $key)
Get the number of messages in a Redis STREAM key.
Redis|array|false
xpending(string $key, string $group, string|null $start = null, string|null $end = null, int $count = -1, string|null $consumer = null)
Interact with stream messages that have been consumed by a consumer group but not yet acknowledged with XACK.
Redis|array|bool
xrange(string $key, string $start, string $end, int $count = -1)
Get a range of entries from a STREAM key.
Redis|array|bool
xread(array $streams, int $count = -1, int $block = -1)
Consume one or more unconsumed elements in one or more streams.
Redis|array|bool
xreadgroup(string $group, string $consumer, array $streams, int $count = 1, int $block = 1)
Read one or more messages using a consumer group.
Redis|array|bool
xrevrange(string $key, string $end, string $start, int $count = -1)
Get a range of entries from a STREAM ke in reverse cronological order.
Redis|int|false
xtrim(string $key, string $threshold, bool $approx = false, bool $minid = false, int $limit = -1)
Truncate a STREAM key in various ways.
Redis|int|false
zAdd(string $key, array|float $score_or_options, mixed ...$more_scores_and_mems)
Add one or more elements and scores to a Redis sorted set.
Redis|int|false
zCard(string $key)
Return the number of elements in a sorted set.
Redis|int|false
zCount(string $key, string $start, string $end)
Count the number of members in a sorted set with scores inside a provided range.
Redis|float|false
zIncrBy(string $key, float $value, mixed $member)
Create or increment the score of a member in a Redis sorted set
Redis|int|false
zLexCount(string $key, string $min, string $max)
Count the number of elements in a sorted set whos members fall within the provided lexographical range.
Redis|array|false
zMscore(string $key, mixed $member, mixed ...$other_members)
Retrieve the score of one or more members in a sorted set.
Redis|array|false
zPopMax(string $key, int $count = null)
Pop one or more of the highest scoring elements from a sorted set.
Redis|array|false
zPopMin(string $key, int $count = null)
Pop one or more of the lowest scoring elements from a sorted set.
Redis|array|false
zRange(string $key, mixed $start, mixed $end, array|bool|null $options = null)
Retrieve a range of elements of a sorted set between a start and end point.
How the command works in particular is greatly affected by the options that are passed in.
Redis|array|false
zRangeByLex(string $key, string $min, string $max, int $offset = -1, int $count = -1)
Retrieve a range of elements from a sorted set by legographical range.
Redis|array|false
zRangeByScore(string $key, string $start, string $end, array $options = [])
Retrieve a range of members from a sorted set by their score.
Redis|int|false
zrangestore(string $dstkey, string $srckey, string $start, string $end, array|bool|null $options = NULL)
This command is similar to ZRANGE except that instead of returning the values directly it will store them in a destination key provided by the user
Redis|string|array
zRandMember(string $key, array $options = null)
Retrieve one or more random members from a Redis sorted set.
Redis|int|false
zRank(string $key, mixed $member)
Get the rank of a member of a sorted set, by score.
Redis|int|false
zRem(mixed $key, mixed $member, mixed ...$other_members)
Remove one or more members from a Redis sorted set.
Redis|int|false
zRemRangeByLex(string $key, string $min, string $max)
Remove zero or more elements from a Redis sorted set by legographical range.
Redis|int|false
zRemRangeByRank(string $key, int $start, int $end)
Remove one or more members of a sorted set by their rank.
Redis|int|false
zRemRangeByScore(string $key, string $start, string $end)
Remove one or more members of a sorted set by their score.
Redis|array|false
zRevRange(string $key, int $start, int $end, mixed $scores = null)
List the members of a Redis sorted set in reverse order
Redis|array|false
zRevRangeByLex(string $key, string $max, string $min, int $offset = -1, int $count = -1)
List members of a Redis sorted set within a legographical range, in reverse order.
Redis|array|false
zRevRangeByScore(string $key, string $max, string $min, array|bool $options = [])
List elements from a Redis sorted set by score, highest to lowest
Redis|int|false
zRevRank(string $key, mixed $member)
Retrieve a member of a sorted set by reverse rank.
Redis|float|false
zScore(string $key, mixed $member)
Get the score of a member of a sorted set.
Redis|array|false
zdiff(array $keys, array $options = null)
Given one or more sorted set key names, return every element that is in the first set but not any of the others.
Redis|int|false
zdiffstore(string $dst, array $keys)
Store the difference of one or more sorted sets in a destination sorted set.
Redis|array|false
zinter(array $keys, array|null $weights = null, array|null $options = null)
Compute the intersection of one or more sorted sets and return the members
Redis|int|false
zintercard(array $keys, int $limit = -1)
Similar to ZINTER but instead of returning the intersected values, this command returns the cardinality of the intersected set.
Redis|int|false
zinterstore(string $dst, array $keys, array|null $weights = null, string|null $aggregate = null)
Compute the intersection of one ore more sorted sets storing the result in a new sorted set.
Redis|array|false
zscan(string $key, int|null $iterator, string|null $pattern = null, int $count = 0)
Scan the members of a sorted set incrementally, using a cursor
Redis|array|false
zunion(array $keys, array|null $weights = null, array|null $options = null)
Retrieve the union of one or more sorted sets
Redis|int|false
zunionstore(string $dst, array $keys, array|null $weights = NULL, string|null $aggregate = NULL)
Perform a union on one or more Redis sets and store the result in a destination sorted set.


Test Window has been opened
tag:
Open a new child window
Open Symphony in browser
Open Symphony
Badge Count:
increment badge count


Leaving Haven - Hearts & Arrows
FLAGZ & Wizard - Smokin & Drinkin
Rumspringa - Shake 'em Loose Tonight
Twenty One Pilots - Semi-Automatic
REEZ X Kazkid - This Is What You Came For Remix
Porter Robinson - Goodbye to a World (*Cough* Undertale *Cough*)
Headphone Activist - Cloud City
Nato Feelz x The Bassist - Chronic
Ekali - Meet In The Middle Remix
Diamond In A Lotus - Throw Me Away
Taylor Thomas & CRVE U - Tincture Remix
Just A Gent - Pure Imagination
Galactic Marvl - Don't Let Me Down Remix
Sikdope - Party Drink Smoke Remix
Asterik's indicate a song that made it to "Current Favorite Song"


Welcome to Python for biologists
Here you'll find resources for learning to program in Python for people with a background in biology
Now published: Biological Data Exploration.
A complete guide to cleaning, manipulating and visualizing complex biological datasets with Python.
If you're looking for the exercise files for any of my books, click here.
If you want to get started with writing Python code take a look at the Python for biolgists online course.
If you're looking for instructor-led training courses, check out my training courses designed around biology and bioinformatics.
Browse the list of recent articles:
-
{% for article in articles if article.category == 'article'%}
-
{{ article.title }}
{{ article.date.strftime('%d.%m.%Y') }}
{% endfor %}


A
LT
Admin
LTE
Toggle navigation
4
You have 4 messages
Support Team
5 mins
Why not buy a new awesome theme?
AdminLTE Design Team
2 hours
Why not buy a new awesome theme?
Developers
Today
Why not buy a new awesome theme?
Sales Department
Yesterday
Why not buy a new awesome theme?
Reviewers
2 days
Why not buy a new awesome theme?
See All Messages
10
You have 10 notifications
View all
9
You have 9 tasks
Design some buttons
20%
20% Complete
Create a nice theme
40%
40% Complete
Some task I need to do
60%
60% Complete
Make beautiful transitions
80%
80% Complete
View all tasks
{$Think.session.name}
{$Think.session.name}
注销


Use 'false' instead of empty [/[[ conditionals.
if [ ]
then
echo "Temporarily disabled"
fi
if false
then
echo "Temporarily disabled"
fi
[ ]
is a somewhat obscure way of expressing falsehood, and the behavior is likely intended to allow the incorrectly quoted command [ $var ]
to still work when the variable is unset.
POSIX has a more descriptive command false
for this.
None. This is a stylistic suggestion, and has no effect on how the script works.


The FreeRADIUS Client Library
FreeRADIUS Client is a framework and library for writing RADIUS Clients which additionally includes radlogin, a flexible RADIUS aware login replacement, a command line program to send RADIUS accounting records and a utility to query the status of a RADIUS server. All of these programs are based on a library that lets you develop a RADIUS-aware application in less than 50 lines of C code. It is highly portable and runs on Linux, many BSD variants and Solaris.
See the Wiki for more information, including .tar.bz2">download links.
Source code access is via CVS.
License
Unlike the FreeRADIUS Server which is available under the GPL, or libfreeradius which is available under the LGPL, the FreeRADIUS Client library is distributed under the BSD license. This is to facilitate the maximum possible use of correct, up-to-date, maintained code in as many other RADIUS Client implementations as possible.
The FreeRADIUS team collectively has decades of RADIUS experience, and is active in defining new RADIUS standards. We have worked with many different RADIUS servers and clients, and know what it takes to make a client that is robust, feature-rich, and inter-operable. To that end, we are releasing this library under the BSD license, to lower your costs in developing a RADIUS client, and to increase the likelihood that your client will inter-operate with every other implementation.
Please see the COPYRIGHT file in the radiusclient source code for more details.
History
Radiusclient used to live at http://www.cityline.net/~lf/radius/ but seems to be no longer maintained (Tarballs are still available from ftp://ftp.cityline.net/pub/radiusclient/). It does however still ship with some Linux distributions including SUSE Linux.
A fork of the original radiusclient called radiusclient-ng is used as the basis of the RADIUS support in SER and OpenSER.
In late 2006 it was decided that the FreeRADIUS Project should adopt the latest code from radiusclient-ng cvs as the basis of a new FreeRADIUS client package. The intention is to roll some of the client functionality of the FreeRADIUS server into this separate client package and to make the FreeRADIUS suite a one stop shop for all people wishing to use and develop RADIUS related applications.
The first version released by the FreeRADIUS project is 1.1.5. This version fixes an MD5 related endian issue and introduces a client configuration framework to the library which lends itself to allowing embedded radius client functionality. Development of the codebase is ongoing.


Header
Main
Footer
Header
Main
Footer
Header
Main
Footer
Most of the business world uses standard A4 (letter size) paper. It always comes 8.5"x11" (210mm x 279.4mm) since it is an established standard.
It would be silly for A4 paper to come in random sizes larger than 8.5"x11" each time you ordered it. Some days it might be 8.5"x11" and other days it might be 9"x12". Since it must be 8.5x11 to work with scanners and other equipment, you would have to crop sizes larger back down to 8.5"x11" and then you could use it.
This would be ridiculous. However, aren't our websites the same way?
It seems 98% of all web themes use three basic sections to order content. Each has a header (top), content area (middle), and footer (bottom). The look and sub elements of these three sections varies drastically - but the fact that they are there wrapping those elements doesn't.
In an attempt to standardize this format (if for no-one else by myself) I have created this file. At the core of all my themes are these three basic sections. By adopting this file as the base for all my themes I will be able to standardize my HTML so that I can concentrate more on CSS styling.
Think of it like a less restrictive csszengarden.com
I dare you to find a theme that this file isn't built for. Every site out there is page based, full-width, or the background is full-width while the content is page-based.
P.S. Sub elements like "sidebars" are not included because they vary tremendously in number and position from theme to theme.


| '5' is a magic number. | 77 | |
| Line is longer than 80 characters. | 79 | |
| Line contains a tab character. | 79 | |
| Line is longer than 80 characters. | 81 | |
| Line contains a tab character. | 81 | |
| Line contains a tab character. | 82 | |
| Line contains a tab character. | 83 | |
| Line is longer than 80 characters. | 84 | |
| Line contains a tab character. | 84 | |
| Line contains a tab character. | 85 | |
| Line contains a tab character. | 87 | |
| Line is longer than 80 characters. | 88 | |
| Line contains a tab character. | 88 | |
| Line is longer than 80 characters. | 89 | |
| Line contains a tab character. | 89 | |
| Line is longer than 80 characters. | 90 | |
| Line contains a tab character. | 90 | |
| Line contains a tab character. | 92 | |
| Line contains a tab character. | 93 | |
| Line contains a tab character. | 94 | |
| Line contains a tab character. | 96 | |
| Line contains a tab character. | 97 | |
| First sentence should end with a period. | 99 | |
| Line contains a tab character. | 99 | |
| Line contains a tab character. | 100 | |
| Line has trailing spaces. | 101 | |
| Line contains a tab character. | 101 | |
| Line contains a tab character. | 102 | |
| Line contains a tab character. | 103 | |
| Line contains a tab character. | 104 | |
| Line contains a tab character. | 105 | |
| Line contains a tab character. | 106 | |
| Line contains a tab character. | 107 | |
| Parameter servletContext should be final. | 107 | |
| Line contains a tab character. | 108 | |
| Line contains a tab character. | 109 | |
| Line is longer than 80 characters. | 110 | |
| Line contains a tab character. | 110 | |
| Line is longer than 80 characters. | 111 | |
| Line contains a tab character. | 111 | |
| Line is longer than 80 characters. | 112 | |
| Line contains a tab character. | 112 | |
| Line contains a tab character. | 113 | |
| Line contains a tab character. | 114 | |
| Line contains a tab character. | 115 | |
| Line contains a tab character. | 116 | |
| Line contains a tab character. | 117 | |
| Line contains a tab character. | 118 | |
| Line contains a tab character. | 119 | |
| Line contains a tab character. | 120 | |
| Line contains a tab character. | 121 | |
| Line contains a tab character. | 122 | |
| Line contains a tab character. | 123 | |
| Line contains a tab character. | 124 | |
| Line contains a tab character. | 125 | |
| Line contains a tab character. | 126 |
| Violation | Message | Line |
|---|---|---|
| Line has trailing spaces. | 8 | |
| Line has trailing spaces. | 16 | |
| Line has trailing spaces. | 19 | |
| Line has trailing spaces. | 21 | |
| Line is longer than 80 characters. | 23 | |
| Utility classes should not have a public or default constructor. | 45 | |
| First sentence should end with a period. | 47 | |
| Line contains a tab character. | 47 | |
| Line is longer than 80 characters. | 48 | |
| Line contains a tab character. | 48 | |
| Line has trailing spaces. | 49 | |
| Line contains a tab character. | 49 | |
| Line contains a tab character. | 50 | |
| Line contains a tab character. | 51 | |
| Line has trailing spaces. | 52 | |
| Line contains a tab character. | 52 | |
| Line is longer than 80 characters. | 53 | |
| Line contains a tab character. | 53 | |
| Line contains a tab character. | 54 | |
| Line contains a tab character. | 55 | |
| Line contains a tab character. | 56 | |
| Line contains a tab character. | 57 | |
| Line contains a tab character. | 59 | |
| Line contains a tab character. | 60 | |
| Line has trailing spaces. | 61 | |
| Line contains a tab character. | 61 | |
| Line is longer than 80 characters. | 62 | |
| Line contains a tab character. | 62 | |
| Line contains a tab character. | 63 | |
| Line contains a tab character. | 64 | |
| Line contains a tab character. | 65 | |
| Line contains a tab character. | 66 | |
| Line contains a tab character. | 68 | |
| Line contains a tab character. | 69 | |
| Line has trailing spaces. | 70 | |
| Line contains a tab character. | 70 | |
| Line contains a tab character. | 71 | |
| Line contains a tab character. | 72 | |
| Line contains a tab character. | 73 | |
| Line contains a tab character. | 75 | |
| Line is longer than 80 characters. | 76 | |
| Line contains a tab character. | 76 | |
| Line contains a tab character. | 77 | |
| Line contains a tab character. | 78 | |
| Line contains a tab character. | 79 | |
| Line contains a tab character. | 80 | |
| Line has trailing spaces. | 81 | |
| Line contains a tab character. | 81 | |
| Line contains a tab character. | 82 | |
| Line contains a tab character. | 83 | |
| Line contains a tab character. | 84 | |
| Line contains a tab character. | 85 | |
| Line contains a tab character. | 86 | |
| Line contains a tab character. | 87 | |
| Line contains a tab character. | 88 | |
| Line has trailing spaces. | 89 | |
| Line contains a tab character. | 89 | |
| Line contains a tab character. | 90 | |
| Line is longer than 80 characters. | 91 | |
| Line contains a tab character. | 91 | |
| Line contains a tab character. | 92 | |
| Line has trailing spaces. | 93 | |
| Line contains a tab character. | 93 | |
| Line contains a tab character. | 94 | |
| Line contains a tab character. | 95 | |
| Line contains a tab character. | 96 | |
| Line contains a tab character. | 97 | |
| Parameter str should be final. | 97 | |
| Line contains a tab character. | 98 | |
| Line contains a tab character. | 99 | |
| Parameter str should be final. | 115 | |
| Line has trailing spaces. | 118 | |
| Line contains a tab character. | 119 | |
| Line is longer than 80 characters. | 120 | |
| Line contains a tab character. | 120 | |
| Line contains a tab character. | 121 | |
| Line contains a tab character. | 122 | |
| Line contains a tab character. | 123 | |
| Line contains a tab character. | 124 | |
| Line has trailing spaces. | 125 | |
| Line contains a tab character. | 125 | |
| Line contains a tab character. | 126 | |
| Line is longer than 80 characters. | 127 | |
| Line contains a tab character. | 127 | |
| Line contains a tab character. | 128 | |
| Line has trailing spaces. | 129 | |
| Line contains a tab character. | 129 | |
| Line contains a tab character. | 130 | |
| Line contains a tab character. | 131 | |
| Line contains a tab character. | 132 | |
| Line contains a tab character. | 133 | |
| Line contains a tab character. | 134 | |
| Line contains a tab character. | 135 | |
| Line contains a tab character. | 136 | |
| Line contains a tab character. | 137 | |
| Line contains a tab character. | 138 | |
| Line has trailing spaces. | 139 | |
| Line contains a tab character. | 139 | |
| Line contains a tab character. | 140 | |
| Line contains a tab character. | 141 | |
| Line is longer than 80 characters. | 142 | |
| Line contains a tab character. | 142 | |
| Line contains a tab character. | 143 | |
| Line contains a tab character. | 144 | |
| Parameter str should be final. | 144 | |
| Parameter sub should be final. | 144 | |
| Line contains a tab character. | 145 | |
| Line contains a tab character. | 146 | |
| Line contains a tab character. | 147 | |
| Line contains a tab character. | 148 | |
| Line contains a tab character. | 149 | |
| Line contains a tab character. | 150 | |
| Line contains a tab character. | 151 | |
| Line contains a tab character. | 152 | |
| Line contains a tab character. | 153 | |
| Line contains a tab character. | 154 | |
| Line contains a tab character. | 155 | |
| Line contains a tab character. | 157 | |
| Line is longer than 80 characters. | 158 | |
| Line contains a tab character. | 158 | |
| Line contains a tab character. | 159 | |
| Line contains a tab character. | 160 | |
| Line contains a tab character. | 161 | |
| Line contains a tab character. | 162 | |
| Line has trailing spaces. | 163 | |
| Line contains a tab character. | 163 | |
| Line contains a tab character. | 164 | |
| Line contains a tab character. | 165 | |
| Line contains a tab character. | 166 | |
| Line has trailing spaces. | 167 | |
| Line contains a tab character. | 167 | |
| Line contains a tab character. | 168 | |
| Line contains a tab character. | 169 | |
| Line contains a tab character. | 170 | |
| Line contains a tab character. | 171 | |
| Line contains a tab character. | 172 | |
| Line contains a tab character. | 173 | |
| Line contains a tab character. | 174 | |
| Line contains a tab character. | 175 | |
| Line contains a tab character. | 176 | |
| Line contains a tab character. | 177 | |
| Line contains a tab character. | 178 | |
| Line contains a tab character. | 179 | |
| Line contains a tab character. | 180 | |
| Line has trailing spaces. | 181 | |
| Line contains a tab character. | 181 | |
| Line contains a tab character. | 182 | |
| Line is longer than 80 characters. | 183 | |
| Line contains a tab character. | 183 | |
| Line contains a tab character. | 184 | |
| Line contains a tab character. | 185 | |
| Parameter str should be final. | 185 | |
| Line contains a tab character. | 186 | |
| Line contains a tab character. | 187 | |
| Line contains a tab character. | 188 | |
| Line contains a tab character. | 189 | |
| Line contains a tab character. | 190 | |
| Line contains a tab character. | 191 | |
| Line contains a tab character. | 192 | |
| Line contains a tab character. | 193 | |
| Line contains a tab character. | 194 | |
| Line contains a tab character. | 195 | |
| Line contains a tab character. | 196 | |
| Line contains a tab character. | 197 | |
| Line contains a tab character. | 198 | |
| Line contains a tab character. | 199 | |
| Line contains a tab character. | 200 | |
| Line contains a tab character. | 201 | |
| Line contains a tab character. | 202 | |
| Line has trailing spaces. | 203 | |
| Line contains a tab character. | 203 | |
| Line contains a tab character. | 204 | |
| Line is longer than 80 characters. | 210 | |
| Line is longer than 80 characters. | 228 | |
| Parameter str should be final. | 230 | |
| Parameter separator should be final. | 230 | |
| Unused @throws tag for 'NullPointerException'. | 246 | |
| Parameter str should be final. | 248 | |
| Parameter sep should be final. | 248 | |
| Line has trailing spaces. | 258 | |
| Line has trailing spaces. | 260 | |
| Line is longer than 80 characters. | 260 | |
| Parameter str should be final. | 265 | |
| Parameter separator should be final. | 265 | |
| '{' is not preceded with whitespace. | 265 | |
| Line has trailing spaces. | 266 | |
| Line contains a tab character. | 267 |
| Violation | Message | Line |
|---|---|---|
| Missing package-info.java file. | 0 | |
| Line has trailing spaces. | 3 | |
| Line is longer than 80 characters. | 4 | |
| Line is longer than 80 characters. | 5 | |
| Line has trailing spaces. | 6 | |
| Line contains a tab character. | 7 | |
| Line has trailing spaces. | 8 | |
| Line is longer than 80 characters. | 9 | |
| Line is longer than 80 characters. | 10 | |
| Line is longer than 80 characters. | 11 | |
| First sentence should end with a period. | 16 | |
| Line has trailing spaces. | 17 | |
| Line has trailing spaces. | 18 | |
| Class BOM should be declared as final. | 22 | |
| Line contains a tab character. | 24 | |
| Line contains a tab character. | 25 | |
| Line contains a tab character. | 26 | |
| Line contains a tab character. | 27 | |
| Line contains a tab character. | 29 | |
| Line contains a tab character. | 30 | |
| Line contains a tab character. | 31 | |
| Line contains a tab character. | 32 | |
| '{' is followed by whitespace. | 32 | |
| Line contains a tab character. | 33 | |
| Line contains a tab character. | 35 | |
| Line contains a tab character. | 36 | |
| Line contains a tab character. | 37 | |
| Line contains a tab character. | 38 | |
| '{' is followed by whitespace. | 38 | |
| Line contains a tab character. | 39 | |
| Line contains a tab character. | 41 | |
| Line contains a tab character. | 42 | |
| Line contains a tab character. | 43 | |
| Line contains a tab character. | 44 | |
| '{' is followed by whitespace. | 44 | |
| Line contains a tab character. | 45 | |
| Line contains a tab character. | 47 | |
| Line contains a tab character. | 48 | |
| Line contains a tab character. | 49 | |
| Line contains a tab character. | 50 | |
| '{' is followed by whitespace. | 50 | |
| Line contains a tab character. | 51 | |
| Line contains a tab character. | 53 | |
| Line contains a tab character. | 54 | |
| Line contains a tab character. | 55 | |
| Line contains a tab character. | 56 | |
| '{' is followed by whitespace. | 56 | |
| Line contains a tab character. | 57 | |
| Line contains a tab character. | 59 | |
| Missing a Javadoc comment. | 59 | |
| Variable 'bytes' must be private and have accessor methods. | 59 | |
| Array brackets at illegal position. | 59 | |
| Line contains a tab character. | 60 | |
| Missing a Javadoc comment. | 60 | |
| Line has trailing spaces. | 61 | |
| Line contains a tab character. | 61 | |
| Line contains a tab character. | 62 | |
| Missing a Javadoc comment. | 62 | |
| Array brackets at illegal position. | 62 | |
| 'charset' hides a field. | 62 | |
| Line contains a tab character. | 63 | |
| Line is longer than 80 characters. | 64 | |
| Line contains a tab character. | 64 | |
| Line is longer than 80 characters. | 65 | |
| Line contains a tab character. | 65 | |
| Line contains a tab character. | 67 | |
| Line contains a tab character. | 68 | |
| Line contains a tab character. | 69 | |
| Line has trailing spaces. | 70 | |
| Line contains a tab character. | 70 | |
| Line contains a tab character. | 71 | |
| Line contains a tab character. | 72 | |
| Line contains a tab character. | 73 | |
| Expected an @return tag. | 74 | |
| Line contains a tab character. | 74 | |
| Line contains a tab character. | 75 | |
| Line contains a tab character. | 76 | |
| Line contains a tab character. | 78 | |
| Line contains a tab character. | 79 | |
| Line contains a tab character. | 80 | |
| Expected an @return tag. | 81 | |
| Line contains a tab character. | 81 | |
| Line contains a tab character. | 82 | |
| Line contains a tab character. | 83 | |
| Line contains a tab character. | 85 | |
| Line contains a tab character. | 86 | |
| Line contains a tab character. | 88 | |
| Line contains a tab character. | 89 | |
| Line has trailing spaces. | 90 | |
| Line contains a tab character. | 90 | |
| Line contains a tab character. | 91 | |
| Line contains a tab character. | 92 | |
| Line contains a tab character. | 93 | |
| Line contains a tab character. | 94 | |
| Expected an @return tag. | 95 | |
| Line contains a tab character. | 95 | |
| Line contains a tab character. | 96 | |
| Line contains a tab character. | 97 |
| Violation | Message | Line |
|---|---|---|
| Line has trailing spaces. | 3 | |
| Line is longer than 80 characters. | 4 | |
| Line is longer than 80 characters. | 5 | |
| Line has trailing spaces. | 6 | |
| Line contains a tab character. | 7 | |
| Line has trailing spaces. | 8 | |
| Line is longer than 80 characters. | 9 | |
| Line is longer than 80 characters. | 10 | |
| Line is longer than 80 characters. | 11 | |
| Line is longer than 80 characters. | 24 | |
| Line has trailing spaces. | 25 | |
| Line has trailing spaces. | 35 | |
| Line has trailing spaces. | 41 | |
| '{' should be on the previous line. | 46 | |
| Line has trailing spaces. | 50 | |
| Line has trailing spaces. | 52 | |
| Line is longer than 80 characters. | 58 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 58 | |
| Line is longer than 80 characters. | 59 | |
| '{' should be on the previous line. | 61 | |
| 'if' construct must use '{}'s. | 62 | |
| Line is longer than 80 characters. | 63 | |
| ',' is not followed by whitespace. | 65 | |
| '4' is a magic number. | 65 | |
| 'bom' hides a field. | 67 | |
| Array brackets at illegal position. | 67 | |
| '4' is a magic number. | 67 | |
| '{' should be on the previous line. | 71 | |
| '4' is a magic number. | 72 | |
| '0xFF' is a magic number. | 73 | |
| 'cast' is not followed by whitespace. | 73 | |
| '&&' should be on a new line. | 73 | |
| '0xFE' is a magic number. | 74 | |
| 'cast' is not followed by whitespace. | 74 | |
| '&&' should be on a new line. | 74 | |
| 'cast' is not followed by whitespace. | 75 | |
| '&&' should be on a new line. | 75 | |
| '3' is a magic number. | 76 | |
| 'cast' is not followed by whitespace. | 76 | |
| '{' should be on the previous line. | 77 | |
| '}' should be on the same line. | 80 | |
| 'cast' is not followed by whitespace. | 82 | |
| '&&' should be on a new line. | 82 | |
| 'cast' is not followed by whitespace. | 83 | |
| '&&' should be on a new line. | 83 | |
| '0xFE' is a magic number. | 84 | |
| 'cast' is not followed by whitespace. | 84 | |
| '&&' should be on a new line. | 84 | |
| '3' is a magic number. | 85 | |
| '0xFF' is a magic number. | 85 | |
| 'cast' is not followed by whitespace. | 85 | |
| '{' should be on the previous line. | 86 | |
| '3' is a magic number. | 91 | |
| '0xEF' is a magic number. | 92 | |
| 'cast' is not followed by whitespace. | 92 | |
| '&&' should be on a new line. | 92 | |
| '0xBB' is a magic number. | 93 | |
| 'cast' is not followed by whitespace. | 93 | |
| '&&' should be on a new line. | 93 | |
| '0xBF' is a magic number. | 94 | |
| 'cast' is not followed by whitespace. | 94 | |
| '{' should be on the previous line. | 95 | |
| '0xFF' is a magic number. | 101 | |
| 'cast' is not followed by whitespace. | 101 | |
| '&&' should be on a new line. | 101 | |
| '0xFE' is a magic number. | 102 | |
| 'cast' is not followed by whitespace. | 102 | |
| '{' should be on the previous line. | 103 | |
| '}' should be on the same line. | 106 | |
| '0xFE' is a magic number. | 108 | |
| 'cast' is not followed by whitespace. | 108 | |
| '&&' should be on a new line. | 108 | |
| '0xFF' is a magic number. | 109 | |
| 'cast' is not followed by whitespace. | 109 | |
| '{' should be on the previous line. | 110 | |
| 'if' construct must use '{}'s. | 120 | |
| ',' is not followed by whitespace. | 121 | |
| ',' is not followed by whitespace. | 121 | |
| Line has trailing spaces. | 127 | |
| '{' should be on the previous line. | 131 | |
| Line has trailing spaces. | 139 | |
| Line has trailing spaces. | 141 | |
| '{' should be on the previous line. | 146 | |
| '{' should be on the previous line. | 148 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 158 | |
| '{' should be on the previous line. | 159 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 166 | |
| Array brackets at illegal position. | 166 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 167 | |
| '{' should be on the previous line. | 168 | |
| ',' is not followed by whitespace. | 169 | |
| ',' is not followed by whitespace. | 169 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 175 | |
| Array brackets at illegal position. | 175 | |
| Redundant throws: 'NullPointerException' is unchecked exception. | 178 | |
| '{' should be on the previous line. | 179 | |
| ',' is not followed by whitespace. | 180 | |
| ',' is not followed by whitespace. | 180 | |
| Method 'skip' is not designed for extension - needs to be abstract, final or empty. | 186 | |
| '{' should be on the previous line. | 187 | |
| Method 'available' is not designed for extension - needs to be abstract, final or empty. | 194 | |
| '{' should be on the previous line. | 195 | |
| Method 'close' is not designed for extension - needs to be abstract, final or empty. | 202 | |
| '{' should be on the previous line. | 203 | |
| Method 'mark' is not designed for extension - needs to be abstract, final or empty. | 210 | |
| '{' should be on the previous line. | 211 | |
| Method 'reset' is not designed for extension - needs to be abstract, final or empty. | 218 | |
| '{' should be on the previous line. | 219 | |
| Line has trailing spaces. | 226 | |
| Method 'markSupported' is not designed for extension - needs to be abstract, final or empty. | 226 | |
| '{' should be on the previous line. | 227 | |
| Missing a Javadoc comment. | 231 | |
| Missing a Javadoc comment. | 232 | |
| Missing a Javadoc comment. | 233 |
| Violation | Message | Line |
|---|---|---|
| Line has trailing spaces. | 3 | |
| Line is longer than 80 characters. | 4 | |
| Line is longer than 80 characters. | 5 | |
| Line has trailing spaces. | 6 | |
| Line contains a tab character. | 7 | |
| Line has trailing spaces. | 8 | |
| Line is longer than 80 characters. | 9 | |
| Line is longer than 80 characters. | 10 | |
| Line is longer than 80 characters. | 11 | |
| Line has trailing spaces. | 29 | |
| Line has trailing spaces. | 35 | |
| Line has trailing spaces. | 39 | |
| Line has trailing spaces. | 42 | |
| Line has trailing spaces. | 46 | |
| Line has trailing spaces. | 49 | |
| Line has trailing spaces. | 53 | |
| Line has trailing spaces. | 56 | |
| Line has trailing spaces. | 60 | |
| Line has trailing spaces. | 63 | |
| Line has trailing spaces. | 67 | |
| Line has trailing spaces. | 71 | |
| Line has trailing spaces. | 80 | |
| Line contains a tab character. | 86 | |
| Missing a Javadoc comment. | 86 | |
| Line contains a tab character. | 87 | |
| Missing a Javadoc comment. | 87 | |
| Line contains a tab character. | 88 | |
| Missing a Javadoc comment. | 88 | |
| Line contains a tab character. | 89 | |
| Missing a Javadoc comment. | 89 | |
| Line contains a tab character. | 91 | |
| Line contains a tab character. | 92 | |
| Line contains a tab character. | 93 | |
| Line has trailing spaces. | 94 | |
| Line contains a tab character. | 94 | |
| Line contains a tab character. | 95 | |
| Unused @param tag for 'inputStream'. | 95 | |
| Line contains a tab character. | 96 | |
| Line has trailing spaces. | 97 | |
| Line contains a tab character. | 97 | |
| Line contains a tab character. | 98 | |
| Line contains a tab character. | 99 | |
| Line has trailing spaces. | 100 | |
| Line contains a tab character. | 100 | |
| Line contains a tab character. | 101 | |
| Line is longer than 80 characters. | 102 | |
| Line contains a tab character. | 102 | |
| Line contains a tab character. | 103 | |
| Line contains a tab character. | 104 | |
| Line contains a tab character. | 105 | |
| Expected @param tag for 'reader'. | 105 | |
| Line contains a tab character. | 106 | |
| Line contains a tab character. | 108 | |
| '{' should be on the previous line. | 108 | |
| Line contains a tab character. | 109 | |
| Line contains a tab character. | 110 | |
| Line contains a tab character. | 112 | |
| Line contains a tab character. | 113 | |
| Line contains a tab character. | 114 | |
| Line has trailing spaces. | 115 | |
| Line contains a tab character. | 115 | |
| Line contains a tab character. | 116 | |
| Unused @param tag for 'inputStream'. | 116 | |
| Line contains a tab character. | 117 | |
| Line has trailing spaces. | 118 | |
| Line contains a tab character. | 118 | |
| Line contains a tab character. | 119 | |
| Unused @param tag for 'strCharset'. | 119 | |
| Line contains a tab character. | 120 | |
| Line has trailing spaces. | 121 | |
| Line contains a tab character. | 121 | |
| Line contains a tab character. | 122 | |
| Line is longer than 80 characters. | 123 | |
| Line contains a tab character. | 123 | |
| Line contains a tab character. | 124 | |
| Line contains a tab character. | 125 | |
| Line contains a tab character. | 126 | |
| Expected @param tag for 'reader'. | 126 | |
| Expected @param tag for 'pCharset'. | 126 | |
| Line contains a tab character. | 127 | |
| Line contains a tab character. | 129 | |
| '{' should be on the previous line. | 129 | |
| 'if' construct must use '{}'s. | 130 | |
| Line contains a tab character. | 130 | |
| Line contains a tab character. | 131 | |
| Line contains a tab character. | 132 | |
| 'if' construct must use '{}'s. | 134 | |
| Line contains a tab character. | 134 | |
| Line contains a tab character. | 135 | |
| Line contains a tab character. | 136 | |
| Line contains a tab character. | 138 | |
| '4' is a magic number. | 138 | |
| Line contains a tab character. | 139 | |
| Line contains a tab character. | 141 | |
| '4' is a magic number. | 141 | |
| Line contains a tab character. | 142 | |
| Line contains a tab character. | 144 | |
| Line contains a tab character. | 145 | |
| Line contains a tab character. | 146 | |
| 'bom' hides a field. | 146 | |
| Line contains a tab character. | 148 | |
| Line contains a tab character. | 149 | |
| '4' is a magic number. | 149 | |
| Line contains a tab character. | 150 | |
| '0xFF' is a magic number. | 150 | |
| '0xFE' is a magic number. | 150 | |
| Line is longer than 80 characters. | 151 | |
| Line contains a tab character. | 151 | |
| '3' is a magic number. | 151 | |
| Line contains a tab character. | 152 | |
| Line contains a tab character. | 153 | |
| Line is longer than 80 characters. | 154 | |
| Line contains a tab character. | 154 | |
| Line is longer than 80 characters. | 155 | |
| Line contains a tab character. | 155 | |
| '0xFE' is a magic number. | 155 | |
| '3' is a magic number. | 155 | |
| '0xFF' is a magic number. | 155 | |
| Line contains a tab character. | 156 | |
| Line contains a tab character. | 157 | |
| Line contains a tab character. | 158 | |
| Line contains a tab character. | 160 | |
| '3' is a magic number. | 160 | |
| Line contains a tab character. | 161 | |
| '0xEF' is a magic number. | 161 | |
| '0xBB' is a magic number. | 161 | |
| Line contains a tab character. | 162 | |
| '0xBF' is a magic number. | 162 | |
| Line contains a tab character. | 163 | |
| Line contains a tab character. | 164 | |
| Line contains a tab character. | 165 | |
| Line contains a tab character. | 167 | |
| Line is longer than 80 characters. | 168 | |
| Line contains a tab character. | 168 | |
| '0xFF' is a magic number. | 168 | |
| '0xFE' is a magic number. | 168 | |
| Line contains a tab character. | 169 | |
| Line contains a tab character. | 170 | |
| Line is longer than 80 characters. | 171 | |
| Line contains a tab character. | 171 | |
| '0xFE' is a magic number. | 171 | |
| '0xFF' is a magic number. | 171 | |
| Line contains a tab character. | 172 | |
| Line contains a tab character. | 173 | |
| Line contains a tab character. | 174 | |
| Line contains a tab character. | 176 | |
| Line contains a tab character. | 177 | |
| Line contains a tab character. | 178 | |
| Line contains a tab character. | 179 | |
| 'if' construct must use '{}'s. | 181 | |
| Line contains a tab character. | 181 | |
| Line contains a tab character. | 182 | |
| Line contains a tab character. | 183 | |
| Line contains a tab character. | 185 | |
| Line contains a tab character. | 186 | |
| Line contains a tab character. | 187 | |
| Line has trailing spaces. | 188 | |
| Line contains a tab character. | 188 | |
| Line contains a tab character. | 189 | |
| Line contains a tab character. | 190 | |
| Line contains a tab character. | 191 | |
| Line contains a tab character. | 192 | |
| Line contains a tab character. | 193 | |
| Line contains a tab character. | 194 | |
| Line contains a tab character. | 196 | |
| Line contains a tab character. | 197 | |
| Line contains a tab character. | 198 | |
| Line has trailing spaces. | 199 | |
| Line contains a tab character. | 199 | |
| Line contains a tab character. | 200 | |
| Line has trailing spaces. | 201 | |
| Line contains a tab character. | 201 | |
| Line contains a tab character. | 202 | |
| Line contains a tab character. | 203 | |
| Line contains a tab character. | 204 | |
| Line contains a tab character. | 205 | |
| Line is longer than 80 characters. | 206 | |
| Line contains a tab character. | 206 | |
| Line contains a tab character. | 207 | |
| Line contains a tab character. | 209 | |
| Line contains a tab character. | 210 | |
| Line contains a tab character. | 211 | |
| 'bom' hides a field. | 211 | |
| Line contains a tab character. | 212 | |
| Line contains a tab character. | 213 | |
| Line contains a tab character. | 214 | |
| Line contains a tab character. | 215 | |
| Line contains a tab character. | 216 | |
| Line contains a tab character. | 217 | |
| Line contains a tab character. | 218 | |
| Line contains a tab character. | 219 | |
| Line contains a tab character. | 220 | |
| Line contains a tab character. | 221 | |
| Line contains a tab character. | 222 | |
| Line contains a tab character. | 223 | |
| First sentence should end with a period. | 225 | |
| Line contains a tab character. | 225 | |
| Line contains a tab character. | 226 | |
| Line has trailing spaces. | 227 | |
| Line contains a tab character. | 227 | |
| Line contains a tab character. | 228 | |
| Line contains a tab character. | 229 | |
| Line contains a tab character. | 230 | |
| Method 'hasBOM' is not designed for extension - needs to be abstract, final or empty. | 230 | |
| Line contains a tab character. | 232 | |
| Line contains a tab character. | 233 | |
| Line contains a tab character. | 235 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 235 | |
| Line contains a tab character. | 236 | |
| Parameter cbuf should be final. | 236 | |
| Parameter off should be final. | 236 | |
| Parameter len should be final. | 236 | |
| Line contains a tab character. | 237 | |
| Line contains a tab character. | 238 | |
| Line contains a tab character. | 240 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 240 | |
| Missing a Javadoc comment. | 240 | |
| Parameter target should be final. | 240 | |
| Line contains a tab character. | 241 | |
| Line contains a tab character. | 242 | |
| Line contains a tab character. | 244 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 244 | |
| Missing a Javadoc comment. | 244 | |
| Line contains a tab character. | 246 | |
| Line contains a tab character. | 247 | |
| Line contains a tab character. | 249 | |
| Method 'read' is not designed for extension - needs to be abstract, final or empty. | 249 | |
| Missing a Javadoc comment. | 249 | |
| Parameter cbuf should be final. | 249 | |
| Line contains a tab character. | 250 | |
| Line contains a tab character. | 251 | |
| Line contains a tab character. | 253 | |
| Method 'skip' is not designed for extension - needs to be abstract, final or empty. | 253 | |
| Missing a Javadoc comment. | 253 | |
| Parameter n should be final. | 253 | |
| Line contains a tab character. | 254 | |
| Line contains a tab character. | 255 | |
| Line contains a tab character. | 257 | |
| Method 'ready' is not designed for extension - needs to be abstract, final or empty. | 257 | |
| Missing a Javadoc comment. | 257 | |
| Line contains a tab character. | 258 | |
| Line contains a tab character. | 259 | |
| Line contains a tab character. | 261 | |
| Method 'markSupported' is not designed for extension - needs to be abstract, final or empty. | 261 | |
| Missing a Javadoc comment. | 261 | |
| Line contains a tab character. | 262 | |
| Line contains a tab character. | 263 | |
| Line contains a tab character. | 265 | |
| Method 'mark' is not designed for extension - needs to be abstract, final or empty. | 265 | |
| Missing a Javadoc comment. | 265 | |
| Parameter readAheadLimit should be final. | 265 | |
| Line contains a tab character. | 266 | |
| Line contains a tab character. | 267 | |
| Line contains a tab character. | 269 | |
| Method 'reset' is not designed for extension - needs to be abstract, final or empty. | 269 | |
| Missing a Javadoc comment. | 269 | |
| Line contains a tab character. | 270 | |
| Line contains a tab character. | 271 | |
| Line contains a tab character. | 273 | |
| Method 'close' is not designed for extension - needs to be abstract, final or empty. | 273 | |
| Missing a Javadoc comment. | 273 | |
| Line contains a tab character. | 274 | |
| Line contains a tab character. | 275 |


Our mission is to give a voice to all these hardworking women who do not get enough credit for the amount of work they do. Only then they can appreciate their own value and strength. The purpose of this new brand is to invite women into an active female community, where they can learn how to present themselves as successful business women. Together we can grow and learn to become more professional. Join our community now and support each other, because together we stand STRONG!