Module: Card::Set::All::Follow::ClassMethods

Defined in:
tmpsets/set/mod006-05_email/all/follow.rb

Instance Method Summary collapse

Instance Method Details

#clear_follower_ids_cacheObject



253
254
255
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 253

def clear_follower_ids_cache
  Card.cache.write FOLLOWER_IDS_CACHE_KEY, nil
end

#follow_caches_expiredObject



240
241
242
243
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 240

def follow_caches_expired
  Card.clear_follower_ids_cache
  Card.clear_user_rule_cache
end

#follower_ids_cacheObject



245
246
247
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 245

def follower_ids_cache
  Card.cache.read(FOLLOWER_IDS_CACHE_KEY) || {}
end

#write_follower_ids_cache(hash) ⇒ Object



249
250
251
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 249

def write_follower_ids_cache hash
  Card.cache.write FOLLOWER_IDS_CACHE_KEY, hash
end