Class: ActionController::Caching::Fragments::UnthreadedMemoryStore
- Defined in:
- lib/action_controller/caching.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#delete(name, options = nil) ⇒ Object
:nodoc:.
-
#delete_matched(matcher, options = nil) ⇒ Object
:nodoc:.
-
#initialize ⇒ UnthreadedMemoryStore
constructor
:nodoc:.
-
#read(name, options = nil) ⇒ Object
:nodoc:.
-
#write(name, value, options = nil) ⇒ Object
:nodoc:.
Constructor Details
#initialize ⇒ UnthreadedMemoryStore
:nodoc:
437 438 439 |
# File 'lib/action_controller/caching.rb', line 437 def initialize #:nodoc: @data = {} end |
Instance Method Details
#delete(name, options = nil) ⇒ Object
:nodoc:
449 450 451 |
# File 'lib/action_controller/caching.rb', line 449 def delete(name, =nil) #:nodoc: @data.delete(name) end |
#delete_matched(matcher, options = nil) ⇒ Object
:nodoc:
453 454 455 |
# File 'lib/action_controller/caching.rb', line 453 def delete_matched(matcher, =nil) #:nodoc: @data.delete_if { |k,v| k =~ matcher } end |
#read(name, options = nil) ⇒ Object
:nodoc:
441 442 443 |
# File 'lib/action_controller/caching.rb', line 441 def read(name, =nil) #:nodoc: @data[name] end |
#write(name, value, options = nil) ⇒ Object
:nodoc:
445 446 447 |
# File 'lib/action_controller/caching.rb', line 445 def write(name, value, =nil) #:nodoc: @data[name] = value end |