test/dummy/app/cachers/user_cacher.rb in cachers-4.1.0.1 vs test/dummy/app/cachers/user_cacher.rb in cachers-4.1.0.2
- old
+ new
@@ -12,6 +12,13 @@
def key
"users/#{record.name}"
end
+ class << self
+
+ def cached?(user)
+ exists "users/#{user.name}"
+ end
+
+ end
end