|
@@ -27,6 +27,9 @@ class RedisStorage(BaseStorage):
|
|
|
def save(self):
|
|
|
self.db.save()
|
|
|
|
|
|
+ def get_node(self, id):
|
|
|
+ return self.get_node_data(id)
|
|
|
+
|
|
|
def get_all_nodes_raw(self):
|
|
|
keys = self.db.keys('node_*')
|
|
|
nodes = {}
|
|
@@ -57,6 +60,9 @@ class RedisStorage(BaseStorage):
|
|
|
def get_node_data(self, key):
|
|
|
node = {}
|
|
|
thedata = self.db.hgetall('node_' + key)
|
|
|
+ if thedata is None:
|
|
|
+ return None
|
|
|
+
|
|
|
for item in thedata:
|
|
|
if item.endswith(self.FIELDSUFFIX_TYPE):
|
|
|
continue
|