class SandthornSnapshotMemcached::SnapshotStore
Public Class Methods
new(url)
click to toggle source
# File lib/sandthorn_snapshot_memcached/snapshot_store.rb, line 5 def initialize url options = { :compress => true } @store = Dalli::Client.new(url, options) end
Public Instance Methods
find(aggregate_id)
click to toggle source
# File lib/sandthorn_snapshot_memcached/snapshot_store.rb, line 14 def find aggregate_id @store.get(aggregate_id) end
save(aggregate_id, aggregate)
click to toggle source
# File lib/sandthorn_snapshot_memcached/snapshot_store.rb, line 10 def save aggregate_id, aggregate @store.set(aggregate_id, aggregate) end