     @cache[tabId] ||= 1
     if @cache[tabId] == @timestamp then 0.0 else @cache[tabId] / @timestamp
 
-tabCache = new TabCache()
+tabRecency = new TabRecency()
 
 # Searches through all open tabs, matching on title and URL.
 class TabCompleter

    if 0 < suggestion.queryTerms.length
      RankingUtils.wordRelevancy(suggestion.queryTerms, suggestion.url, suggestion.title)
    else
      tabCache.recencyScore suggestion.tabId

# A completer which will return your search engines
class SearchEngineCompleter

  # Suggestions from the Domain completer have the maximum relevancy. They should be shown first in the list.
  computeRelevancy: -> 1

# TabRecency associates a timestamp with each tab id.
class TabRecency
  constructor: ->
    @timestamp = 1
    @cache = {}
