mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Updating wording on cache expiry in README
This commit is contained in:
parent
258f116c3c
commit
4440a092d2
@ -1,6 +1,6 @@
|
|||||||
# ActiveModel::Serializer
|
# 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"><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>
|
<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] 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
|
```ruby
|
||||||
cache(options = nil) # options: ```{key, expires_in, compress, force, race_condition_ttl}```
|
cache(options = nil) # options: ```{key, expires_in, compress, force, race_condition_ttl}```
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user