Module: Card::Set::All::Follow::ClassMethods
- Defined in:
- tmpsets/set/mod013-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
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_expired ⇒ Object
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_cache ⇒ Object
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 |