mongoid-cached-json
mongoid-cached-json copied to clipboard
Effective caching for nested JSON models.
Noticing an odd bug where if a field has `type: :reference` _and_ the `definition` is something that returns `false`, the value of `nil` gets returned instead of the correct `false`....
Travis CI is dead. Replace with GitHub Actions. Maybe copy from another project like https://github.com/mongoid/mongoid-locker
In the simplest case, imagine 2 jobs or requests are updating different fields of the same document. - Processes A and B both load the document into memory - Process...
When we deploy a new version of our codebase that includes _changes_ to a `json_fields` declaration (e.g., adding a new field), any cached data for that model should be invalidated....
I like the json versioning and properties features, but I don't really need the caching for one of my models (for now). So is it possible to disable caching for...
I'm new to using mongoid-cached-json but so far it seems like exactly what I need - thank you! I have a fairly complex model and I want `.to_json` to expose...
See https://gist.github.com/4142313 for a possible callback implementation.
Add an option not to cache specific relationships.
Using `hide_as_child_json_when` means that the API returns null to mean two different things 1. If the relation doesn't exist, 2. Some arbitrary clause e.g. The relation isn't "public". I think...