Closed raokrutarth closed 2 years ago
You are looking for source: custom
. See docs here.
You must use source custom and provide your own implementation of RedisInstance which may freely reuse existing implementations such as Standalone
but with customized host and port.
Hope it helps
Is this still accurate? https://github.com/KarelCemus/play-redis-samples/pull/5/files
Is this still accurate? https://github.com/KarelCemus/play-redis-samples/pull/5/files
Yes, it should be and this is what I meant
Thank you @KarelCemus! Will give these a shot.
My application does not have the redis connection string available in an env var or in the .conf file. It makes a request at bootstrap to get credentials from a secure service.
Is it possible to initiate the cache with credentials passed at runtime?
e.g.
cache: CacheAsyncApi = CacheAsyncApi(host=hostFromSomewhere, port=portFromSomewhere)