Class: Excursion::Datastores::Datastore

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all; end

#all_appsObject



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

def all_apps
  apps = []
  all.values.each do |v|
    apps << Excursion::Pool::Application.from_cache(v)
  end
  apps
end

#app(key) ⇒ Object



6
7
8
# File 'lib/excursion/datastores/datastore.rb', line 6

def app(key)
  Excursion::Pool::Application.from_cache(read(key))
end

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



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

def delete(key); end

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



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

def read(key); end

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



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

def write(key, value); end