| Class Amrita::MemoryCache |
|
| Methods |
| Public Class methods |
| new() |
# File lib/amrita/template.rb, line 510 def initialize @hash = {} end
| Public Instance methods |
| clear() |
# File lib/amrita/template.rb, line 514 def clear @hash = {} end
| get_item(path) |
# File lib/amrita/template.rb, line 518 def get_item(path) ret = @hash[path] ret end
| save_item(item) |
# File lib/amrita/template.rb, line 523 def save_item(item) item.mtime = Time.new @hash[item.path] = item end