Class Rddb::ViewStore::RamViewStore
In: lib/rddb/view_store/ram_view_store.rb
Parent: Base

View store implementation that stores view data in RAM.

Methods

delete   exists?   find   new   store  

Public Class methods

Initialized the view store with the given options.

[Source]

   # File lib/rddb/view_store/ram_view_store.rb, line 7
7:       def initialize(options={})
8:         @options = options
9:       end

Public Instance methods

Delete the view.

[Source]

    # File lib/rddb/view_store/ram_view_store.rb, line 22
22:       def delete(name)
23:         views.delete(name)
24:       end

Return true if the view exists in storage.

[Source]

    # File lib/rddb/view_store/ram_view_store.rb, line 27
27:       def exists?(name)
28:         views.key?(name)
29:       end

Find the view.

[Source]

    # File lib/rddb/view_store/ram_view_store.rb, line 12
12:       def find(name)
13:         views[name]
14:       end

Store the view.

[Source]

    # File lib/rddb/view_store/ram_view_store.rb, line 17
17:       def store(name, view_code)
18:         views[name] = view_code
19:       end

[Validate]