Skip to content
Browse files

redis library changed their API

  • Loading branch information...
1 parent 02fe854 commit 8276bbf3ecf714f9d16e3d97bdd831dd53b75abf @maccman maccman committed Jul 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/supermodel/redis.rb
View
4 lib/supermodel/redis.rb
@@ -60,11 +60,11 @@ def last
end
def exists?(id)
- redis.set_member?(redis_key, id.to_s)
+ redis.sismember(redis_key, id.to_s)
end
def count
- redis.set_count(redis_key)
+ redis.scard(redis_key)
end
def all

0 comments on commit 8276bbf

Please sign in to comment.
Something went wrong with that request. Please try again.