1. gweis
  2. ordf

Commits

William Waites  committed 7b1452c

commend out redist handler for now

  • Participants
  • Parent commits 53f0520
  • Branches default

Comments (0)

Files changed (1)

File ordf/handler/cache.py

View file
-from ordf.handler import HandlerPlugin
-from ordf.namespace import RDFS
-import redis
-
-class Redis(HandlerPlugin):
-    def __init__(self, *av, **kw):
-        self.db = redis.Redis(*av, **kw)
-    def cset(self, cs):
-        self.db.lpush("RecentChanges", cs.metadata.serialize(format="n3"))
-        if self.db.llen("RecentChanges") > 10:
-            self.db.rpop("RecentChanges")
+#from ordf.handler import HandlerPlugin
+#from ordf.namespace import RDFS
+#import redis
+#
+#class Redis(HandlerPlugin):
+#    def __init__(self, *av, **kw):
+#        self.db = redis.Redis(*av, **kw)
+#    def cset(self, cs):
+#        self.db.lpush("RecentChanges", cs.metadata.serialize(format="n3"))
+#        if self.db.llen("RecentChanges") > 10:
+#            self.db.rpop("RecentChanges")