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

Defined in:
tmpsets/set/mod013-email/all/follow.rb

Instance Method Summary collapse

Instance Method Details

#clear_follower_ids_cacheObject



246
247
248
# File 'tmpsets/set/mod013-email/all/follow.rb', line 246

def clear_follower_ids_cache
  Card.cache.write FOLLOWER_IDS_CACHE_KEY, nil
end

#follow_caches_expiredObject



233
234
235
236
# File 'tmpsets/set/mod013-email/all/follow.rb', line 233

def follow_caches_expired
  Card.clear_follower_ids_cache
  Card.clear_preference_cache
end

#follower_ids_cacheObject



238
239
240
# File 'tmpsets/set/mod013-email/all/follow.rb', line 238

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

#write_follower_ids_cache(hash) ⇒ Object



242
243
244
# File 'tmpsets/set/mod013-email/all/follow.rb', line 242

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