Configuration

Relay provides several ini directives and usually the configuration file is easily located by running:

ls -la $(php-config --ini-dir)

Configuration directives

; The path to the extension binary.
; Relative paths will look in `php-config --extension-dir`.
;
extension = relay.so

; Relay license key.
;
; relay.key =

; The environment Relay is running in.
; Supported values: `production`, `staging`, `testing`, `development`
;
; relay.environment = development

; How much memory Relay allocates on startup. This value can either be a
; number like 33554432 or with a unit (e.g. 32M) like memory_limit.
; See: https://php.net/manual/faq.using.php#faq.using.shorthandbytes
;
; relay.maxmemory = 32M

; At what percentage of used memory should Relay start evicting keys.
;
; relay.maxmemory_pct = 75

; How should relay evict keys. This has been designed to mirror Redis’
; options and we currently support `noeviction`, `lru`, and `random`.
;
; relay.eviction_policy = noeviction

; How many keys should we scan each time we process evictions.
;
; relay.eviction_sample_keys = 128

; Default to using a persistent connection when calling `connect()`.
;
; relay.default_pconnect = 1

; The number of databases Relay will create per in-memory cache.
; This setting should match the `databases` setting in your `redis.conf`.
;
; relay.databases = 16

; The maximum number of in-memory databases Relay will create per endpoint.
;
; relay.max_endpoint_dbs = 16

; The number of epoch readers allocated on startup.
;
; relay.initial_readers = 128

; How often (in microseconds) Relay should proactively check the
; connection for invalidation messages from Redis.
;
; relay.invalidation_poll_freq = 5

; Whether Relay should log debug information.
; Supported levels: `debug`, `verbose`, `error`, `off`
;
; relay.loglevel = off

; The name of the file where information should be logged, if logging is enabled.
;
; relay.logfile = /tmp/relay.log