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.
-
Local
indicates the method does not communicate with Redis -
Server
indicates the method that may communicate with Redis -
RedisCommand
indicates the method represents a command -
Cached
indicates the method may use in-memory caching