instance method
[]=
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
[]=(key, value)
Shortcut to save a value in the cache. This method does not set an expiration on the entry. Use set to specify an explicit expiry.
Parameters
-
keyreq -
valuereq
Source
# File activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb, line 519
def []=(key, value)
set key, value
end
Defined in activesupport/lib/active_support/vendor/memcache-client-1.5.1/memcache.rb line 519
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in MemCache