cache-crispies
cache-crispies copied to clipboard
Speedy Rails JSON serialization with built-in caching
Hi all, We've been happy customers of CacheCrispies and have been using `do_caching true` on some models. However now we've noticed that these models are never expired, our Redis cache...
Updates the requirements on [rspec](https://github.com/rspec/rspec-metagem) to permit the latest version. Commits 317fc0b v3.13.0 cfb135a v3.12.0 See full diff in compare view Dependabot will resolve any conflicts with this PR as...
I was asking about being able to transform keys to something like camelcase and tried this out. Unsure of your needs for contributions, but let me know what you think...
- Ruby 3.2 is out now, so add support for it - Also, remove support for Rail 5.* as it is getting pretty old - Test all suported Ruby versions
I'm thinking this hasn't been made yet, but is there already (or would you be open to) a way to camelize serialized attribute keys? For my own API, I want...
When using nested serializers (`serialize :thing, with: ThingSerializer`), handling all the options that need to be passed in at the top level can quickly become tedious and prone to mistakes....
Allow subclassed serializers to inherit attributes from its parent, behaviour which is in line with the OOP paradigm. Attribute objects are not duplicated themselves, because they should be immutable (correct...
The name of the method implies it will always cache, even though that's off by default. Probably best to change it and keep the alias around for backwards compatibility.
Hi, This PR adds a `preloads` method to add a hook so we can preload relations in collections so that we can avoid n+1 issues
```ruby class FruitLoops < ApplicationRecord after_create :prime_cache, type: :create, serializer: ToucanSam after_update :prime_cache, type: :update, serializer: ToucanSam after_destroy :prime_cache, type: :destroy, serializer: ToucanSam # or possibly after_commit :prime_cache, serializer: ToucanSam...