• Connecting to a server
  • Connect to the default host (127.0.0.1) and port (6379)
  • Connect to a server using parameters
  • Connect to multiple servers
  • Automatically perform authentication and database selection when connecting
  • Supported connection parameters
  • Sending commands
  • The simple (and most common) way
  • The long (but more programmatic) way
  • The longest (and partially discouraged) way
  • Pass a dynamic list of arguments when creating an instance of a command
  • Pass a dynamic list of arguments on an existing command instance
  • Pass a fixed list of arguments on an existing command instance
  • Send raw commands** (it does not currently work with clustered connections)
  • Define your own commands by extending one of the following base classes
  • Server profiles
  • Set a different server profile when instanciating a new Predis\Client instance
  • Get an instance of the default server profile supported by the current version of Predis
  • Get an instance of a server profile supported by Predis by using a version string
  • Pipelining
  • Initialize a pipeline inside of a block of code using an anonymous function
  • Client-side sharding
  • Initialize a clustered client and set/retrieve key-values using key tags