mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #1142 from leighhalliday/master
Updating wording on cache expiry in README
This commit is contained in:
commit
ee55af6df5
@ -1,6 +1,6 @@
|
||||
# ActiveModel::Serializer
|
||||
|
||||
[](https://travis-ci.org/rails-api/active_model_serializers)
|
||||
[](https://travis-ci.org/rails-api/active_model_serializers)
|
||||
<a href="https://codeclimate.com/github/rails-api/active_model_serializers"><img src="https://codeclimate.com/github/rails-api/active_model_serializers/badges/gpa.svg" /></a>
|
||||
<a href="https://codeclimate.com/github/rails-api/active_model_serializers/coverage"><img src="https://codeclimate.com/github/rails-api/active_model_serializers/badges/coverage.svg" /></a>
|
||||
|
||||
@ -300,7 +300,7 @@ The cache support is optimized to use the cached object in multiple request. An
|
||||
|
||||
**[NOTE] Every object is individually cached.**
|
||||
|
||||
**[NOTE] The cache is automatically expired after update an object but it's not deleted.**
|
||||
**[NOTE] The cache is automatically expired after an object is updated, but it's not deleted.**
|
||||
|
||||
```ruby
|
||||
cache(options = nil) # options: ```{key, expires_in, compress, force, race_condition_ttl}```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user