interagent / heroics

Ruby HTTP client for APIs represented with JSON schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ETag as cache key can lead to issues

tmaier opened this issue · comments

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.

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