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

Add redis #168

Closed
wants to merge 1 commit into from
Closed

Add redis #168

wants to merge 1 commit into from

Conversation

ari-gold
Copy link

@ari-gold ari-gold commented Sep 5, 2014

Should I check to see if Redis is already enabled?

Fixes GH-163

selfie-0

/fu

@@ -1603,6 +1613,22 @@ function terminus_notification_poll($site_uuid, $type) {
}
}

/* Add Redis */
function drush_terminus_pantheon_site_redis_add($site_uuid) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's call it "enable" instead of "add".

Let's split this out into three functions:

drush_termins_pantheon_site_redis_enable_validate() - validates input, like we do for other functions
drush_termins_pantheon_site_redis_enable() - gives the user some output, and calls
terminus_api_site_redis_enable() (in termins.site.api.inc) that takes valid input and calls terminus_request()

@ari-gold
Copy link
Author

ari-gold commented Sep 5, 2014

@joshkoenig Nice timing on the validation helper functions!

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.

Feature request: Add Redis Cache Server
2 participants