Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spaces from the cache key #28

Merged
merged 1 commit into from
Oct 21, 2021

Conversation

MelissaWu-SS
Copy link

@MelissaWu-SS MelissaWu-SS commented Oct 21, 2021

The space in the key is generated by microtime($as_float). By default the $as_float parameter is false if we didn't set it, so the function returns the string with the structure: microsec sec. It has a space between the microsec sec.
Simply set the $as_float parameter to be true, it will return a float representing the current time in seconds without space. This should fix #21

@chrispenny chrispenny merged commit a812ca5 into main Oct 21, 2021
@chrispenny chrispenny deleted the feature/remove-spaces-from-the-key branch October 21, 2021 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update generateKeyHash to not add spaces to the key
2 participants