Class Ruote::CompositeStorage
In: lib/ruote/storage/composite_storage.rb
Parent: Object

This storage allows for mixing of storage implementation or simply mixing of storage physical backend.

  opts = {}

  engine =
    Ruote::Engine.new(
      Ruote::Worker.new(
        Ruote::CompositeStorage.new(
          Ruote::FsStorage.new('ruote_work', opts),
          'msgs' => Ruote::HashStorage.new(opts))))

In this example, everything goes to the FsStorage, except the messages (msgs) that go to an in-memory storage.

Methods

delete   get   get_many   ids   new   prepare_base_methods   purge!   purge_type!   put   storage  

Included Modules

StorageBase

Constants

STORAGE_BASE_METHODS = { 'put_msg' => 'msgs', 'get_msgs' => 'msgs', 'find_root_expression' => 'expressions', 'get_schedules' => 'schedules', 'put_schedule' => 'schedules'   def add_type (type) end
TYPES = %w[ variables msgs expressions errors schedules configurations workitems ]

Public Class methods

Public Instance methods

Protected Instance methods

[Validate]