codenoble / cache-crispies

Speedy Rails JSON serialization with built-in caching
MIT License
156 stars 14 forks source link

Metadata support #17

Closed adamcrown closed 4 years ago

adamcrown commented 4 years ago

Support rendering additional metadata. Possibly in a way similar to Active Model Serializers with an option meta: argument.

I'm thinking it would be best just add this as an option to the cache_render method and just merge it in with the resulting hash from the serializers. Then we can just ignore caching the metadata, as that would probably get complicated.