-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add endpoint override for Momento (#43)
* feat: Add endpoint override for Momento The plan of record is to make endpoint available in the authToken. SDK will be parsing the authToken to determine the endpoint and then prefix it with `control.` to perform control operations and `cache.` to perform cache operations. Currently, the endpoint isn't available in the authToken. Hence an endpointOverride option is added. Momento will prefer the endpointOverride option over the endpoint in the authToken. The change also switches Momento construction from init() to Builder pattern which is more consistent with other standard Java SDKs like those of other cloud providers. Now the object construction will be: ``` Momento momento = Momento.builder() .authToken("authToken") .endpointOverride("developer-gautam-dev.preprod.a.momentohq.com") .build(); ``` * update variable names
- Loading branch information
1 parent
369eceb
commit 3f4326f
Showing
2 changed files
with
68 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters