Class: ActionController::Caching::Fragments::UnthreadedMemoryStore

Inherits:
Object
  • Object
show all
Defined in:
lib/action_controller/caching.rb

Overview

:nodoc:

Direct Known Subclasses

MemoryStore

Instance Method Summary collapse

Constructor Details

#initializeUnthreadedMemoryStore

:nodoc:



396
397
398
# File 'lib/action_controller/caching.rb', line 396

def initialize #:nodoc:
  @data = {}
end

Instance Method Details

#delete(name, options = nil) ⇒ Object

:nodoc:



408
409
410
# File 'lib/action_controller/caching.rb', line 408

def delete(name, options=nil) #:nodoc:
  @data.delete(name)
end

#delete_matched(matcher, options = nil) ⇒ Object

:nodoc:



412
413
414
# File 'lib/action_controller/caching.rb', line 412

def delete_matched(matcher, options=nil) #:nodoc:
  @data.delete_if { |k,v| k =~ matcher }
end

#read(name, options = nil) ⇒ Object

:nodoc:



400
401
402
# File 'lib/action_controller/caching.rb', line 400

def read(name, options=nil) #:nodoc:
  @data[name]
end

#write(name, value, options = nil) ⇒ Object

:nodoc:



404
405
406
# File 'lib/action_controller/caching.rb', line 404

def write(name, value, options=nil) #:nodoc:
  @data[name] = value
end