Class: Excursion::Datastores::Datastore

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

Instance Method Summary collapse

Instance Method Details

#allObject



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

def all; end

#all_appsObject



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

def all_apps
  app_hash = HashWithIndifferentAccess.new
  all.each do |k,v|
    app_hash[k.to_sym] = Excursion::Pool::Application.from_cache(v)
  end
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



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

def delete(key); end

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



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

def read(key); end

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



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

def write(key, value); end