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

Store the state value in the cache as well #13

Merged
merged 2 commits into from
May 11, 2015
Merged

Store the state value in the cache as well #13

merged 2 commits into from
May 11, 2015

Conversation

arb
Copy link
Owner

@arb arb commented May 11, 2015

Closes #12

state would only be available the first time hydrate is called which is the opposite of useful, so we are storing that as well in the cache.

Added example.

@arb arb added this to the 2.0.0 milestone May 11, 2015
var state = Hoek.reach(response, 'plugins.tacky.state');

if (state) {
response.statusCode = state.statusCode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, a lot of the indentation is off in this file.

arb added a commit that referenced this pull request May 11, 2015
Store the state value in the cache as well
@arb arb merged commit 763971a into arb:master May 11, 2015
@arb arb deleted the state-updates branch May 11, 2015 20:21
@arb arb unassigned cjihrig Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Store state in Cache
2 participants