You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will then be used as the default way of fetching flags.
58
60
59
-
Using Redis
60
-
===========
61
+
With Guzzle, you could persist your cache somewhere other than the default in-memory store, like Memcached or Redis. You could then specify your cache when initializing the client with the [cache option](https://github.com/launchdarkly/php-client/blob/master/src/LaunchDarkly/LDClient.php#L42).
62
+
63
+
$client = new LaunchDarkly\LDClient("YOUR_SDK_KEY", array("cache" => $cacheStorage));
64
+
65
+
66
+
Using LD-Relay
67
+
==============
68
+
69
+
* Setup [ld-relay](https://github.com/launchdarkly/ld-relay) in [daemon-mode](https://github.com/launchdarkly/ld-relay#redis-storage-and-daemon-mode) with Redis
61
70
62
-
1. Require Predis as a dependency:
71
+
* Require Predis as a dependency:
63
72
64
73
php composer.phar require "predis/predis:1.0.*"
65
74
66
-
2. Create the LDClient with the Redis feature requester as an option:
75
+
* Create the LDClient with the Redis feature requester as an option:
0 commit comments