lib/ayadn/nicerank.rb in ayadn-2.1 vs lib/ayadn/nicerank.rb in ayadn-3.0
- old
+ new
@@ -1,8 +1,10 @@
# encoding: utf-8
module Ayadn
class NiceRank
+ require "fast_cache"
+
attr_reader :store
def initialize
@url = 'http://api.nice.social/user/nicerank?ids='
@store = FastCache::Cache.new(5_000, 120*60) # 5000 items with 2 hours TTL each