class Orchestrate::Application::SimpleCacheRefs
Stores documents in cache, indexed by ref value.
Public Class Methods
new()
click to toggle source
# File rails/lib/orchestrate_application/simple_cache_store.rb, line 106 def initialize @@documents = {} end
Public Instance Methods
document(ref)
click to toggle source
# File rails/lib/orchestrate_application/simple_cache_store.rb, line 114 def document(ref) @@documents[ref] end
flush!()
click to toggle source
# File rails/lib/orchestrate_application/simple_cache_store.rb, line 118 def flush! @@documents = {} end
save(ref, document)
click to toggle source
# File rails/lib/orchestrate_application/simple_cache_store.rb, line 110 def save(ref, document) @@documents[ref] = document end