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

@dylanfareed: Add caching #35

Merged
merged 2 commits into from May 21, 2015
Merged

@dylanfareed: Add caching #35

merged 2 commits into from May 21, 2015

Conversation

bhoggard
Copy link
Contributor

No description provided.

@bhoggard bhoggard changed the title Add caching @dylanfareed: Add caching May 20, 2015
end

def cache=(store_option)
@_cache = ActiveSupport::Cache.lookup_store(store_option)
Copy link

Choose a reason for hiding this comment

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

Maybe a little weird that cache and cache= assigns a different type than it returns.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That pattern was copied from https://github.com/bellycard/napa and prevents the need for something like:

config.cache_store =

@dylanfareed
Copy link
Contributor

Thanks @bhoggard

dylanfareed added a commit that referenced this pull request May 21, 2015
@dylanfareed dylanfareed merged commit d5ae058 into artsy:master May 21, 2015
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.

None yet

3 participants