Open PikachuEXE opened 8 years ago
I would actually argue against adding this feature.
As shown in the README, implementing your own caching with Rails.cache.fetch (or a DalliClient for example in a non-Rails app) is dead simple, and I don't see a reason to slow down JB's processing time by having it calculate what we can only guess is the best way to hash your specific collection or object to form a unique key.
If your Rails.cache.fetch key is colliding easily, you should try changing up how you generate your key, perhaps with a more dynamic approach. At the object level, using "
Other solution like JBuilder and RABL has some caching function built-in
And they do make the caching key different so that it won't collide so easily