Module: Twitter::Cache::Helpers

Included in:
Redis, Wrapper
Defined in:
lib/twitter/cache/helpers.rb

Instance Method Summary collapse

Instance Method Details

#cacheObject



8
9
10
# File 'lib/twitter/cache/helpers.rb', line 8

def cache
  @cache ||= Twitter::Cache::Redis.new
end

#configObject



4
5
6
# File 'lib/twitter/cache/helpers.rb', line 4

def config
  Twitter::Cache.config
end

#friends_cacheObject



16
17
18
# File 'lib/twitter/cache/helpers.rb', line 16

def friends_cache
  @friends_cache ||= Twitter::Cache::Redis.new(:friends)
end

#user_cacheObject



12
13
14
# File 'lib/twitter/cache/helpers.rb', line 12

def user_cache
  @user_cache ||= Twitter::Cache::Redis.new(:user)
end