active_model_serializers/lib/active_model/serializer
Joao Moura 8a432ad2b3 Adding cache support to version 0.10.0
It's a new implementation of cache based on ActiveSupport::Cache.
The implementation abstracts the cache in Adapter class on a
private method called cached_object, this method is intended
to be used on Adapters inside serializable_hash method in order
to cache each instance of the object that will be returned by
the serializer.

Some of its features are:
- A different syntax. (no longer need the cache_key method).
- An options argument that have the same arguments of ActiveSupport::Cache::Store, plus a key option that will be the prefix of the object cache on a pattern "#{key}-#{object.id}".
- It cache the objects individually and not the whole Serializer return, re-using it in different requests (as a show and a index method for example.)
2015-02-02 14:53:34 -02:00
..
adapter Adding cache support to version 0.10.0 2015-02-02 14:53:34 -02:00
adapter.rb Adding cache support to version 0.10.0 2015-02-02 14:53:34 -02:00
array_serializer.rb Adds support for meta attribute 2015-01-05 02:56:33 -02:00
configuration.rb rename simple adapter to json 2014-08-29 11:01:39 +04:00
fieldset.rb merge upstream update fieldset 2014-11-13 17:45:47 -08:00
version.rb bump version to 0.10.0.pre 2014-08-22 17:02:05 -04:00