Sha256: ee9413e52e150bccbbfa0479999c47d3361f6d5be9178cf6b8c0a576f375f3e1

Contents?: true

Size: 446 Bytes

Versions: 9

Compression:

Stored size: 446 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.get(list.id)

list.destroy

pp GameList.get(list.id)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
toystore-0.13.0 examples/memcached.rb
toystore-0.12.0 examples/memcached.rb
toystore-0.11.0 examples/memcached.rb
toystore-0.10.4 examples/memcached.rb
toystore-0.10.3 examples/memcached.rb
toystore-0.10.2 examples/memcached.rb
toystore-0.10.1 examples/memcached.rb
toystore-0.10.0 examples/memcached.rb
toystore-0.9.0 examples/memcached.rb