-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evaluate Proc namespaces every time (not just at initialization) (#923)
When creating a dalli client with a Proc for the namespace option, it would generally mean that the namespace may change from operation to operation. Saving the result of calling the proc in the KeyManager instance at initialisation time means that the client will always use the value of the namespace as it was when the client was created. If this was the desired behaviour, it would be just as easy to pass that value as a string instead of a Proc.
- Loading branch information
Showing
2 changed files
with
35 additions
and
6 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