Sha256: 2c95d9fca593cca12181bc56d8f145c9f4bc23d2c34cad283a37ede63ff2370b

Contents?: true

Size: 444 Bytes

Versions: 10

Compression:

Stored size: 444 Bytes

Contents

require 'pp'
require 'pathname'
require 'rubygems'
require 'adapter/memcached'

root_path = Pathname(__FILE__).dirname.join('..').expand_path
lib_path  = root_path.join('lib')
$:.unshift(lib_path)
require 'toystore'

class GameList
  include Toy::Store
  store :memcached, Memcached.new

  attribute :source, Hash
end

list = GameList.create(:source => {'foo' => 'bar'})

pp list
pp GameList.get(list.id)

list.destroy

pp GameList.get(list.id)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
toystore-0.8.3 examples/memcached.rb
toystore-0.8.2 examples/memcached.rb
toystore-0.8.1 examples/memcached.rb
toystore-0.8.0 examples/memcached.rb
toystore-0.7.0 examples/memcached.rb
toystore-0.6.6 examples/memcached.rb
toystore-0.6.5 examples/memcached.rb
toystore-0.6.4 examples/memcached.rb
toystore-0.6.3 examples/memcached.rb
toystore-0.6.2 examples/memcached.rb