checking if the cache exists on the redis key

This commit is contained in:
Ilya Zhitomirskiy 2011-11-06 11:29:36 -08:00
parent 5214556882
commit 7200b0d9b3

View file

@ -21,7 +21,7 @@ class RedisCache
# @return [Boolean]
def cache_exists?
self.size != 0
self.redis.exists(set_key)
end
# @return [Integer] the cardinality of the redis set