Skip to content

Commit decc5b5

Browse files
authored
Merge pull request rails#54051 from kwarddev/kw-update-redis-cache-store-docs
Document AS::Cache::RedisCacheStore#write options [ci skip]
2 parents 7076741 + 0b78ab4 commit decc5b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

activesupport/lib/active_support/cache.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,8 @@ def fetch_multi(*names)
658658
# version, the read will be treated as a cache miss. This feature is
659659
# used to support recyclable cache keys.
660660
#
661+
# * +:unless_exist+ - Prevents overwriting an existing cache entry.
662+
#
661663
# Other options will be handled by the specific cache store implementation.
662664
def write(name, value, options = nil)
663665
options = merged_options(options)

activesupport/lib/active_support/cache/mem_cache_store.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,6 @@ def inspect
110110
# * <tt>raw: true</tt> - Sends the value directly to the server as raw
111111
# bytes. The value must be a string or number. You can use memcached
112112
# direct operations like +increment+ and +decrement+ only on raw values.
113-
#
114-
# * <tt>unless_exist: true</tt> - Prevents overwriting an existing cache
115-
# entry.
116113

117114
# Increment a cached integer value using the memcached incr atomic operator.
118115
# Returns the updated value.

0 commit comments

Comments
 (0)