Skip to content

2.0.0

Latest
Compare
Choose a tag to compare
@kelunik kelunik released this 20 Aug 16:57
· 2 commits to 2.x since this release
v2.0.0
5c14a57

Initial release compatible with AMPHP v3. As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

  • Added RedisParcel in the Sync sub-namespace implementing the Parcel interface from amphp/sync
  • Added RedisConnector interface to decouple connecting and init commands such as AUTH and SELECT
  • Reorganized class names / namespaces for better overview
    • Redis moved to RedisClient
    • Subscriber / Subscription moved to RedisSubscriber / RedisSubscription
    • Cache moved to RedisCache
    • Mutex sub-namespace has been changed to Sync. All classes within now have a prefix of Redis, e.g., MutexRedisMutex, MutexOptionsRedisMutexOptions
    • Config moved to RedisConfig
    • RespSocket moved to Amp\Redis\Connection\RedisConnection and is an interface now
    • RespParser moved to Amp\Redis\Protocol\RespParser
    • QueryExecutor moved to Amp\Redis\Connection\RedisLink
    • RemoteExecutor moved to Amp\Redis\Connection\ReconnectingRedisLink
    • RedisHyperLogLog moved to Amp\Redis\Command\RedisHyperLogLog
    • RedisList moved to Amp\Redis\Command\RedisList
    • RedisMap moved to Amp\Redis\Command\RedisMap
    • RedisSet moved to Amp\Redis\Command\RedisSet
    • RedisSortedSet moved to Amp\Redis\Command\RedisSortedSet
    • SortOptions moved to Amp\Redis\Command\Option\SortOptions
    • SetOptions moved to Amp\Redis\Command\Option\SetOptions
    • SocketException moved to Amp\Redis\Connection/RedisConnectionException
    • ParserException moved to Amp\Redis\Protocol\ProtocolException
    • QueryException moved to Amp\Redis\Protocol\QueryException
  • RedisSubscription is now a simple PHP iterator now that Amp\Iterator is no longer necessary with fibers.