Sha256: 77d6e053770b0bb89819572d1f58621c869f8d494ff9c21cc1fee2fd57c63edd

Contents?: true

Size: 182 Bytes

Versions: 1

Compression:

Stored size: 182 Bytes

Contents

class UserCacher < Cachers::Base

  def cache
    $redis.set key, record.id
  end

  def uncache
    $redis.del key
  end

  private

  def key
    "users/#{record.name}"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cachers-4.0.0.0 test/dummy/app/cachers/user_cacher.rb