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

picklecache #623

Merged
merged 2 commits into from
May 19, 2020
Merged

picklecache #623

merged 2 commits into from
May 19, 2020

Conversation

jmensch1
Copy link
Contributor

This is a drop-in replacement for Redis that caches stuff in the filesystem using python's pickle module. The filenames are the same as the keys that we're already using for Redis. So it's essentially a file-based key-value store.

On my local, the picklecache is about the same speed as Redis. And it won't be subject to the 25M limit that we have on heroku-redis. So I want to see how it performs on production.

The code here doesn't do anything unless an environment variable called PICKLECACHE is set to 1, in which case it replaces Redis with the picklecache. When this is live I'll toggle the environment variable on heroku and see if there's any improvement.

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

Copy link
Member

@adamkendis adamkendis left a comment

Choose a reason for hiding this comment

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

Any idea how this handles cleanup/expiration of cached data?

@jmensch1
Copy link
Contributor Author

jmensch1 commented May 19, 2020 via email

Copy link
Member

@adamkendis adamkendis left a comment

Choose a reason for hiding this comment

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

Cool, let's try it out.

@adamkendis adamkendis merged commit 58ac88e into dev May 19, 2020
@adamkendis adamkendis deleted the BACK-PickleCache branch May 19, 2020 19:34
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.

3 participants