checking if the cache exists on the redis key
This commit is contained in:
parent
5214556882
commit
7200b0d9b3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue