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

Rack::Cache::Key#generate might generate a key which is too long #64

Open
godfat opened this issue May 22, 2012 · 1 comment
Open

Rack::Cache::Key#generate might generate a key which is too long #64

godfat opened this issue May 22, 2012 · 1 comment

Comments

@godfat
Copy link

godfat commented May 22, 2012

Rack::Cache::Key#generate might generate a key which is too long
to be used as a key in memcache. Would it be better to hash the URL?

@seivan
Copy link

seivan commented Dec 6, 2012

+1 on this. Makes it easier to purge cache as well.

Or the ability to define a method that generates keys in config so people could override it.

EDIT; Saw that this existed
https://github.com/rtomayko/rack-cache/blob/master/lib/rack/cache/options.rb

Thanks.

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

No branches or pull requests

2 participants