API
Relay’s API is available in a searchable format at docs.relay.so/api.
Additionally, all builds include a relay.stub.php file, which outlines that build’s classes and their APIs.
Stubs
Fetching a specific stub without downloading a build can be done as well:
wget "https://builds.r2.relay.so/dev/relay.stub.php"
curl -O "https://builds.r2.relay.so/v0.9.1/relay.stub.php"
Attributes
All methods have PHP attributes to provide some metadata which can be inspected at runtime using the Reflection APIs.
-
Localindicates the method does not communicate with Redis -
Serverindicates the method that may communicate with Redis -
RedisCommandindicates the method represents a command -
Cachedindicates the method may use in-memory caching