rack-cache
rack-cache copied to clipboard
Rack::Cache::Key#generate might generate a key which is too long
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?
+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.