Sha256: 9d1d6ac4f130a74297218befeee6b71073e64625609ccb24db2db32b1626a0a1

Contents?: true

Size: 194 Bytes

Versions: 5

Compression:

Stored size: 194 Bytes

Contents

class Order
  include Mongoid::Document
  include Ultracache::Cached

  field :name

  belongs_to :customer
  cached_queue_in :customer, :as => :cached_orders do |obj|
    obj.to_json
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ultracache-0.1.4 spec/models/order.rb
ultracache-0.1.3 spec/models/order.rb
ultracache-0.1.2 spec/models/order.rb
ultracache-0.1.1 spec/models/order.rb
ultracache-0.1.0 spec/models/order.rb