ETag as cache key can lead to issues
tmaier opened this issue · comments
Tobias L. Maier commented
In my specific use case, I am using the Moneta with the :File Moneta.new(:File, dir: Rails.root.join(...))
I receive a Errno::ENAMETOOLONG: Filename too long @ rb_sysopen
error
I would like to suggest to not use the raw ETag directly, but to generate a hash out of it.
Wesley Beary commented
@tmaier - That makes sense, I suspect we just didn't happen to run into this. I'm not really actively working on or around this project at the moment though. Hopefully others who are more active can speak to whether they might have capacity to do this or support someone else in doing it.