@@ -26,7 +26,7 @@ module Cache
2626 class MemCacheStore < Store
2727 # Provide support for raw values in the local cache strategy.
2828 module LocalCacheWithRaw # :nodoc:
29- protected
29+ private
3030 def read_entry ( key , options )
3131 entry = super
3232 if options [ :raw ] && local_cache && entry
@@ -35,7 +35,7 @@ def read_entry(key, options)
3535 entry
3636 end
3737
38- def write_entry ( key , entry , options ) # :nodoc:
38+ def write_entry ( key , entry , options )
3939 if options [ :raw ] && local_cache
4040 raw_entry = Entry . new ( entry . value . to_s )
4141 raw_entry . expires_at = entry . expires_at
@@ -143,14 +143,14 @@ def stats
143143 @data . stats
144144 end
145145
146- protected
146+ private
147147 # Read an entry from the cache.
148- def read_entry ( key , options ) # :nodoc:
148+ def read_entry ( key , options )
149149 rescue_error_with ( nil ) { deserialize_entry ( @data . get ( key , options ) ) }
150150 end
151151
152152 # Write an entry to the cache.
153- def write_entry ( key , entry , options ) # :nodoc:
153+ def write_entry ( key , entry , options )
154154 method = options && options [ :unless_exist ] ? :add : :set
155155 value = options [ :raw ] ? entry . value . to_s : entry
156156 expires_in = options [ :expires_in ] . to_i
@@ -164,12 +164,10 @@ def write_entry(key, entry, options) # :nodoc:
164164 end
165165
166166 # Delete an entry from the cache.
167- def delete_entry ( key , options ) # :nodoc:
167+ def delete_entry ( key , options )
168168 rescue_error_with ( false ) { @data . delete ( key ) }
169169 end
170170
171- private
172-
173171 # Memcache keys are binaries. So we need to force their encoding to binary
174172 # before applying the regular expression to ensure we are escaping all
175173 # characters properly.
0 commit comments