Permalink
Browse files

Switch to use cachemanager instead of explicitly LRUCaches

  • Loading branch information...
1 parent b0066d0 commit 565acb132f4583f709bf399e5c29d223405e3b58 @harryf committed Jun 24, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 urldammit.py
View
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
import urllib2, logging, re
import web # web.py
-from dammit.lrucache import LRUCache
+from dammit import cachemanager
from dammit.request import *
from dammit.uri import *
@@ -22,11 +22,11 @@
manager = URIManager(config.get_db())
# cache URIs we know about
-known = LRUCache(config.KNOWN_CACHE_SIZE)
+known = cachemanager.new_instance()
# cache queries we know nothing about otherwise
# we have to ask couch each time
-unknown = LRUCache(config.UNKNOWN_CACHE_SIZE)
+unknown = cachemanager.new_instance()
class urldammit(object):
"""

0 comments on commit 565acb1

Please sign in to comment.