Sha256: 75b46a962053afeb6cbdda0fb3ad79715d80698b2c421c83a513870c3c82180f

Contents?: true

Size: 449 Bytes

Versions: 2

Compression:

Stored size: 449 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
  adapter :memcached, Memcached.new

  attribute :source, Hash
end

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

pp list
pp GameList.read(list.id)

list.destroy

pp GameList.read(list.id)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
toystore-0.13.2 examples/memcached.rb
toystore-0.13.1 examples/memcached.rb