--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Writes the given value to the cache, with the given key.
- !ruby/struct:SM::Flow::P 
  body: You may also specify additional options via the <tt>options</tt> argument. The specific cache store implementation will decide what to do with <tt>options</tt>.
- !ruby/struct:SM::Flow::P 
  body: "For example, MemCacheStore supports the +:expires_in+ option, which tells the memcached server to automatically expire the cache item after a certain period:"
- !ruby/struct:SM::Flow::VERB 
  body: "  cache = ActiveSupport::Cache::MemCacheStore.new\n  cache.write(&quot;foo&quot;, &quot;bar&quot;, :expires_in =&gt; 5.seconds)\n  cache.read(&quot;foo&quot;)  # =&gt; &quot;bar&quot;\n  sleep(6)\n  cache.read(&quot;foo&quot;)  # =&gt; nil\n"
full_name: ActiveSupport::Cache::Store#write
is_singleton: false
name: write
params: (key, value, options = nil)
visibility: public
