Class: Excursion::Datastores::Datastore

Inherits:
Object
  • Object
show all
Defined in:
lib/excursion/datastores/datastore.rb

Instance Method Summary collapse

Instance Method Details

#allObject



26
# File 'lib/excursion/datastores/datastore.rb', line 26

def all; end

#all_appsObject



12
13
14
15
16
17
18
# File 'lib/excursion/datastores/datastore.rb', line 12

def all_apps
  apps = []
  all.delete_if { |k| k.match(/^_.*/) }.values.each do |v|
    apps << application_class.from_cache(v)
  end
  apps
end

#app(key) ⇒ Object



8
9
10
# File 'lib/excursion/datastores/datastore.rb', line 8

def app(key)
  application_class.from_cache(read(key))
end

#application_classObject



4
5
6
# File 'lib/excursion/datastores/datastore.rb', line 4

def application_class
  Excursion::Pool::Application
end

#delete(key) ⇒ Object Also known as: unset



24
# File 'lib/excursion/datastores/datastore.rb', line 24

def delete(key); end

#read(key) ⇒ Object Also known as: get



20
# File 'lib/excursion/datastores/datastore.rb', line 20

def read(key); end

#write(key, value) ⇒ Object Also known as: set



22
# File 'lib/excursion/datastores/datastore.rb', line 22

def write(key, value); end