Module: Card::Set::All::Follow::ClassMethods
- Defined in:
- tmpsets/set/mod006-05_email/all/follow.rb
Instance Method Summary collapse
- #clear_follower_ids_cache ⇒ Object
- #follow_caches_expired ⇒ Object
- #follower_ids_cache ⇒ Object
- #write_follower_ids_cache(hash) ⇒ Object
Instance Method Details
#clear_follower_ids_cache ⇒ Object
260 261 262 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 260 def clear_follower_ids_cache Card.cache.write FOLLOWER_IDS_CACHE_KEY, nil end |
#follow_caches_expired ⇒ Object
247 248 249 250 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 247 def follow_caches_expired Card.clear_follower_ids_cache Card.clear_user_rule_cache end |
#follower_ids_cache ⇒ Object
252 253 254 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 252 def follower_ids_cache Card.cache.read(FOLLOWER_IDS_CACHE_KEY) || {} end |
#write_follower_ids_cache(hash) ⇒ Object
256 257 258 |
# File 'tmpsets/set/mod006-05_email/all/follow.rb', line 256 def write_follower_ids_cache hash Card.cache.write FOLLOWER_IDS_CACHE_KEY, hash end |