Skip to content

Commit 138ac87

Browse files
authored
Merge pull request rails#54500 from tanhenggek/improve-caching-docs
[docs] Use 'valid' instead of 'legal' for cache key
2 parents 66a9322 + 7463cb7 commit 138ac87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/caching_with_rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,7 @@ and record id.
784784
You can use Hashes and Arrays of values as cache keys.
785785

786786
```ruby
787-
# This is a legal cache key
787+
# This is a valid cache key
788788
Rails.cache.read(site: "mysite", owners: [owner_1, owner_2])
789789
```
790790

0 commit comments

Comments
 (0)