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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Fetch data from cache
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameter
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "options<String,Hash>:"
    body: "The options that will be passed to #key_for"
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "data<Object,NilClass>:"
    body: nil is returned if the cache entry is not found
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Example
- !ruby/struct:SM::Flow::VERB 
  body: "  if cache_data = cache_get(&quot;my_key&quot;)\n    @var1, @var2 = *cache_data\n  else\n    @var1 = MyModel.big_query1\n    @var2 = MyModel.big_query2\n    cache_set(&quot;my_key&quot;, nil, [@var1, @var2])\n  end\n"
full_name: Merb::Cache::ControllerInstanceMethods#cache_get
is_singleton: false
name: cache_get
params: (options)
visibility: public
