Releases: webdcg/redis
Releases · webdcg/redis
0.14.0
Support for Redis Transaction
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| multi | Enter and exit transactional mode. | ✅ | ✅ | Transactions | multi |
| exec | Enter and exit transactional mode. | ✅ | ✅ | Transactions | exec |
| discard | Enter and exit transactional mode. | ✅ | ✅ | Transactions | discard |
| watch | Enter and exit transactional mode. | ✅ | ✅ | Transactions | watch |
| unwatch | Enter and exit transactional mode. | ✅ | ✅ | Transactions | unwatch |
0.13.0
Support for Redis Streams Data Structure
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| xAck | Acknowledge one or more pending messages. | ✅ | ✅ | Streams | xAck |
| xAdd | Add a message to a stream. | ✅ | ✅ | Streams | xAdd |
| xClaim | Acquire ownership of a pending message. | ✅ | ✅ | Streams | xClaim |
| xDel | Remove a message from a stream. | ✅ | ✅ | Streams | xDel |
| xGroup | Manage consumer groups. | ✅ | ✅ | Streams | xGroup |
| xInfo | Get information about a stream. | ✅ | ✅ | Streams | xInfo |
| xLen | Get the length of a stream. | ✅ | ✅ | Streams | xLen |
| xPending | Inspect pending messages in a stream. | ✅ | ✅ | Streams | xPending |
| xRange | Query a range of messages from a stream. | ✅ | ✅ | Streams | xRange |
| xRead | Read message(s) from a stream. | ✅ | ✅ | Streams | xRead |
| xReadGroup | Read stream messages with a group and consumer. | ✅ | ✅ | Streams | xReadGroup |
| xRevRange | Query one or more messages from end to start. | ✅ | ✅ | Streams | xRevRange |
| xTrim | Trim a stream's size. | ✅ | ✅ | Streams | xTrim |
0.12.0
Support for Redis Scripting methods
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| eval | Evaluate a LUA script serverside. | ✅ | ✅ | Scripting | eval |
| evalSha | Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself. | ✅ | ✅ | Scripting | evalSha |
| script | Execute the Redis SCRIPT command to perform various operations on the scripting subsystem. | ✅ | ✅ | Scripting | script |
| getLastError | The last error message (if any). | ✅ | ✅ | Scripting | getLastError |
| clearLastError | Clear the last error message. | ✅ | ✅ | Scripting | clearLastError |
| _prefix | A utility method to prefix the value with the prefix setting for phpredis. | ✅ | ✅ | Scripting | _prefix |
| _unserialize | A utility method to unserialize data with whatever serializer is set up. | ✅ | ✅ | Scripting | _unserialize |
| _serialize | A utility method to serialize data with whatever serializer is set up. | ✅ | ✅ | Scripting | _serialize |
0.11.0
Support for Redis Introspection methods
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| isConnected | A method to determine if a phpredis object thinks it's connected to a server. | ✅ | ✅ | Introspection | isConnected |
| getHost | Retrieve our host or unix socket that we're connected to. | ✅ | ✅ | Introspection | getHost |
| getPort | Get the port we're connected to. | ✅ | ✅ | Introspection | getPort |
| getDbNum | Get the database number phpredis is pointed to. | ✅ | ✅ | Introspection | getDbNum |
| getTimeout | Get the (write) timeout in use for phpredis. | ✅ | ✅ | Introspection | getTimeout |
| getReadTimeout | Get the read timeout specified to phpredis or FALSE if we're not connected. | ✅ | ✅ | Introspection | getReadTimeout |
| getPersistentID | Gets the persistent ID that phpredis is using. | ✅ | ✅ | Introspection | getPersistentID |
| getAuth | Get the password used to authenticate the phpredis connection. | ✅ | ✅ | Introspection | getAuth |
0.10.0
Support for Redis Sorted Sets
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| bzPop | Block until Redis can pop the highest or lowest scoring member from one or more ZSETs. | ✅ | ✅ | SortedSets | bzPop |
| bzPopMin | Block until Redis can pop the lowest scoring member from one or more ZSETs. | ✅ | ✅ | SortedSets | bzPopMin |
| bzPopMax | Block until Redis can pop the highest scoring member from one or more ZSETs. | ✅ | ✅ | SortedSets | bzPopMax |
| zAdd | Add one or more members to a sorted set or update its score if it already exists. | ✅ | ✅ | SortedSets | zAdd |
| zCard | Get the number of members in a sorted set. | ✅ | ✅ | SortedSets | zCard |
| zSize | Get the number of members in a sorted set. | ✅ | ✅ | SortedSets | zSize |
| zCount | Count the members in a sorted set with scores within the given values. | ✅ | ✅ | SortedSets | zCount |
| zIncrBy | Increment the score of a member in a sorted set. | ✅ | ✅ | SortedSets | zIncrBy |
| zinterstore | Intersect multiple sorted sets and store the resulting sorted set in a new key. | ✅ | ✅ | SortedSets | zinterstore |
| zInter | Intersect multiple sorted sets and store the resulting sorted set in a new key. | ✅ | ✅ | SortedSets | zInter |
| zPop | Redis can pop the highest or lowest scoring member from one a ZSET. | ✅ | ✅ | SortedSets | zPop |
| zRange | Return a range of members in a sorted set, by index. | ✅ | ✅ | SortedSets | zRange |
| zRangeByScore | Return a range of members in a sorted set, by score. | ✅ | ✅ | SortedSets | zRangeByScore |
| zRevRangeByScore | Return a range of members in a sorted set, by score. | ✅ | ✅ | SortedSets | zRevRangeByScore |
| zRangeByLex | Return a lexicographical range from members that share the same score. | ✅ | ✅ | SortedSets | zRangeByLex |
| zRank | Determine the index of a member in a sorted set. | ✅ | ✅ | SortedSets | zRank |
| zRevRank | Determine the index of a member in a sorted set. | ✅ | ✅ | SortedSets | zRevRank |
| zRem | Remove one or more members from a sorted set. | ✅ | ✅ | SortedSets | zRem |
| zDelete | Remove one or more members from a sorted set. | ✅ | ✅ | SortedSets | zDelete |
| zRemove | Remove one or more members from a sorted set. | ✅ | ✅ | SortedSets | zRemove |
| zRemRangeByRank | Remove all members in a sorted set within the given indexes. | ✅ | ✅ | SortedSets | zRemRangeByRank |
| zDeleteRangeByRank | Remove all members in a sorted set within the given indexes. | ✅ | ✅ | SortedSets | zDeleteRangeByRank |
| zRemRangeByScore | Remove all members in a sorted set within the given scores. | ✅ | ✅ | SortedSets | zRemRangeByScore |
| zDeleteRangeByScore | Remove all members in a sorted set within the given scores. | ✅ | ✅ | SortedSets | zDeleteRangeByScore |
| zRemoveRangeByScore | Remove all members in a sorted set within the given scores. | ✅ | ✅ | SortedSets | zRemoveRangeByScore |
| zRevRange | Return a range of members in a sorted set, by index, with scores ordered from high to low. | ✅ | ✅ | SortedSets | zRevRange |
| zScore | Get the score associated with the given member in a sorted set. | ✅ | ✅ | SortedSets | zScore |
| zunionstore | Add multiple sorted sets and store the resulting sorted set in a new key. | ✅ | ✅ | SortedSets | zunionstore |
| zUnion | Add multiple sorted sets and store the resulting sorted set in a new key. | ✅ | ✅ | SortedSets | zUnion |
| zScan | Scan a sorted set for members. | ✅ | ✅ | SortedSets | zScan |
0.9.0
Support for Redis Sets
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| sAdd | Add one or more members to a set. | ✅ | ✅ | Sets | sAdd |
| sCard | Get the number of members in a set. | ✅ | ✅ | Sets | sCard |
| sSize | Get the number of members in a set. | ✅ | ✅ | Sets | sSize |
| sDiff | Subtract multiple sets. | ✅ | ✅ | Sets | sDiff |
| sDiffStore | Subtract multiple sets and store the resulting set in a key. | ✅ | ✅ | Sets | sDiffStore |
| sInter | Intersect multiple sets. | ✅ | ✅ | Sets | sInter |
| sInterStore | Intersect multiple sets and store the resulting set in a key. | ✅ | ✅ | Sets | sInterStore |
| sIsMember | Determine if a given value is a member of a set. | ✅ | ✅ | Sets | sIsMember |
| sContains | Determine if a given value is a member of a set. | ✅ | ✅ | Sets | sContains |
| sMembers | Get all the members in a set. | ✅ | ✅ | Sets | sMembers |
| sGetMembers | Get all the members in a set. | ✅ | ✅ | Sets | sGetMembers |
| sMove | Move a member from one set to another. | ✅ | ✅ | Sets | sMove |
| sPop | Remove and return one or more members of a set at random. | ✅ | ✅ | Sets | sPop |
| sRandMember | Get one or multiple random members from a set. | ✅ | ✅ | Sets | sRandMember |
| sRem | Remove one or more members from a set. | ✅ | ✅ | Sets | sRem |
| sRemove | Remove one or more members from a set. | ✅ | ✅ | Sets | sRemove |
| sUnion | Add multiple sets. | ✅ | ✅ | Sets | sUnion |
| sUnionStore | Add multiple sets and store the resulting set in a key. | ✅ | ✅ | Sets | sUnionStore |
| sScan | Scan a set for members. | ✅ | ✅ | Sets | sScan |
0.8.0
Support for Redis Lists
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| blPop | Remove and get the first element in a list | ✅ | ✅ | Lists | blPop |
| brPop | Remove and get the last element in a list | ✅ | ✅ | Lists | brPop |
| bRPopLPush | Pop a value from a list, push it to another list and return it | ✅ | ✅ | Lists | bRPopLPush |
| lIndex | Get an element from a list by its index | ✅ | ✅ | Lists | lIndex |
| lGet | Get an element from a list by its index | ✅ | ✅ | Lists | lGet |
| lInsert | Insert an element before or after another element in a list | ✅ | ✅ | Lists | lInsert |
| lLen | Get the length/size of a list | ✅ | ✅ | Lists | lLen |
| lSize | Get the length/size of a list | ✅ | ✅ | Lists | lSize |
| lPop | Remove and get the first element in a list | ✅ | ✅ | Lists | lPop |
| lPush | Prepend one or multiple values to a list | ✅ | ✅ | Lists | lPush |
| lPushx | Prepend a value to a list, only if the list exists | ✅ | ✅ | Lists | lPushx |
| lRange | Get a range of elements from a list | ✅ | ✅ | Lists | lRange |
| lGetRange | Get a range of elements from a list | ✅ | ✅ | Lists | lGetRange |
| lRem | Remove elements from a list | ✅ | ✅ | Lists | lRem |
| lRemove | Remove elements from a list | ✅ | ✅ | Lists | lRemove |
| lSet | Set the value of an element in a list by its index | ✅ | ✅ | Lists | lSet |
| lTrim | Trim a list to the specified range | ✅ | ✅ | Lists | lTrim |
| listTrim | Trim a list to the specified range | ✅ | ✅ | Lists | listTrim |
| rPop | Remove and get the last element in a list | ✅ | ✅ | Lists | rPop |
| rPopLPush | Remove the last element in a list, append it to another list and return it (redis >= 1.1) | ✅ | ✅ | Lists | rPopLPush |
| rPush | Append one or multiple values to a list | ✅ | ✅ | Lists | rPush |
| rPushX | Append a value to a list, only if the list exists | ✅ | ✅ | Lists | rPushX |
0.7.0
Support for Redis Hashes
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| hDel | Delete one or more hash fields | ✅ | ✅ | Hashes | hDel |
| hExists | Determine if a hash field exists | ✅ | ✅ | Hashes | hExists |
| hGet | Get the value of a hash field | ✅ | ✅ | Hashes | hGet |
| hGetAll | Get all the fields and values in a hash | ✅ | ✅ | Hashes | hGetAll |
| hIncrBy | Increment the integer value of a hash field by the given number | ✅ | ✅ | Hashes | hIncrBy |
| hIncrByFloat | Increment the float value of a hash field by the given amount | ✅ | ✅ | Hashes | hIncrByFloat |
| hKeys | Get all the fields in a hash | ✅ | ✅ | Hashes | hKeys |
| hLen | Get the number of fields in a hash | ✅ | ✅ | Hashes | hLen |
| hMGet | Get the values of all the given hash fields | ✅ | ✅ | Hashes | hMGet |
| hMSet | Set multiple hash fields to multiple values | ✅ | ✅ | Hashes | hMSet |
| hSet | Set the string value of a hash field | ✅ | ✅ | Hashes | hSet |
| hSetNx | Set the value of a hash field, only if the field does not exist | ✅ | ✅ | Hashes | hSetNx |
| hVals | Get all the values in a hash | ✅ | ✅ | Hashes | hVals |
| hScan | Scan a hash key for members | ✅ | ✅ | Hashes | hScan |
| hStrLen | Get the string length of the value associated with field in the hash | ✅ | ✅ | Hashes | hStrLen |
0.6.0
Support for Redis Keys
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| del | Delete a key [Blocking] | ✅ | ✅ | Keys | del |
| delete | Delete a key [Blocking] | ✅ | ✅ | Keys | delete |
| unlink | Delete a key [Background] | ✅ | ✅ | Keys | unlink |
| dump | Return a serialized version of the value stored at the specified key. | ✅ | ✅ | Keys | dump |
| exists | Determine if a key exists | ✅ | ✅ | Keys | exists |
| expire | Set a key's time to live in seconds | ✅ | ✅ | Keys | expire |
| setTimeout | Set a key's time to live in seconds | ✅ | ✅ | Keys | setTimeout |
| pexpire | Set a key's time to live in seconds | ✅ | ✅ | Keys | pexpire |
| expireAt | Set the expiration for a key as a UNIX timestamp | ✅ | ✅ | Keys | pexpireAt |
| pexpireAt | Set the expiration for a key as a UNIX timestamp with millisecond precision | ✅ | ✅ | Keys | pexpireAt |
| keys | Find all keys matching the given pattern | ✅ | ✅ | Keys | keys |
| getKeys | Find all keys matching the given pattern | ✅ | ✅ | Keys | getKeys |
| scan | Scan for keys in the keyspace (Redis >= 2.8.0) | ✅ | ✅ | Keys | scan |
| migrate | Atomically transfer a key from a Redis instance to another one | ✅ | ✅ | Keys | migrate |
| move | Move a key to another database | ✅ | ✅ | Keys | move |
| object | Inspect the internals of Redis objects | ✅ | ✅ | Keys | object |
| persist | Remove the expiration from a key | ✅ | ✅ | Keys | persist |
| randomKey | Return a random key from the keyspace | ✅ | ✅ | Keys | randomKey |
| rename | Rename a key | ✅ | ✅ | Keys | rename |
| renameKey | Rename a key | ✅ | ✅ | Keys | renameKey |
| renameNx | Rename a key, only if the new key does not exist | ✅ | ✅ | Keys | renameNx |
| type | Determine the type stored at key | ✅ | ✅ | Keys | type |
| sort | Sort the elements in a list, set or sorted set | ✅ | ✅ | Keys | sort |
| ttl | Get the time to live for a key | ✅ | ✅ | Keys | ttl |
| pttl | Get the time to live for a key | ✅ | ✅ | Keys | pttl |
| restore | Create a key using the provided serialized value, previously obtained with dump. | ✅ | ✅ | Keys | restore |
0.5.0
Support for Redis Strings
| Command | Description | Supported | Tested | Class/Trait | Method |
|---|---|---|---|---|---|
| append | Append a value to a key | ✅ | ✅ | Strings | append |
| decr | Decrement the value of a key | ✅ | ✅ | Strings | decr |
| decrBy | Decrement the value of a key | ✅ | ✅ | Strings | decrBy |
| get | Get the value of a key | ✅ | ✅ | Strings | get |
| getRange | Get a substring of the string stored at a key | ✅ | ✅ | Strings | getRange |
| getSet | Set the string value of a key and return its old value | ✅ | ✅ | Strings | getSet |
| incr | Increment the value of a key | ✅ | ✅ | Strings | incr |
| incrBy | Increment the value of a key | ✅ | ✅ | Strings | incrBy |
| incrByFloat | Increment the float value of a key by the given amount | ✅ | ✅ | Strings | incrByFloat |
| mGet | Get the values of all the given keys | ✅ | ✅ | Strings | mGet |
| getMultiple | Get the values of all the given keys | ✅ | ✅ | Strings | getMultiple |
| mSet | Set multiple keys to multiple values | ✅ | ✅ | Strings | mSet |
| mSetNX | Set multiple keys to multiple values | ✅ | ✅ | Strings | mSetNX |
| set | Set the string value of a key | ✅ | ✅ | Strings | set |
| setEx | Set the value and expiration of a key | ✅ | ✅ | Strings | setEx |
| pSetEx | Set the value and expiration of a key | ✅ | ✅ | Strings | pSetEx |
| setNx | Set the value of a key, only if the key does not exist | ✅ | ✅ | Strings | setNx |
| setRange | Overwrite part of a string at key starting at the specified offset | ✅ | ✅ | Strings | setRange |
| strLen | Get the length of the value stored in a key | ✅ | ✅ | Strings | strLen |