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:



333
334
335
# File 'lib/action_controller/caching.rb', line 333

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

Instance Method Details

#delete(name, options = nil) ⇒ Object

:nodoc:



345
346
347
# File 'lib/action_controller/caching.rb', line 345

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

#delete_matched(matcher, options = nil) ⇒ Object

:nodoc:



349
350
351
# File 'lib/action_controller/caching.rb', line 349

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

#read(name, options = nil) ⇒ Object

:nodoc:



337
338
339
# File 'lib/action_controller/caching.rb', line 337

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

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

:nodoc:



341
342
343
# File 'lib/action_controller/caching.rb', line 341

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