rack-cache icon indicating copy to clipboard operation
rack-cache copied to clipboard

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

Open godfat opened this issue 12 years ago • 1 comments

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?

godfat avatar May 22 '12 14:05 godfat

+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.

seivan avatar Dec 06 '12 03:12 seivan