Example #1
0
 def process(self):
     data = json.dumps(self.token.response)
     if self.token.request.method == "GET":
         if data != 'null':
             L.info("CacheSetter: storing in %s <== %s" %
                    (self.token.cache_key, snip(str(data))))
             store_in_cache(self.token.cache_key, data)
Example #2
0
 def process(self):
     data = json.dumps(self.token.response)
     if data != 'null':
         L.info("CacheSetter: storing in %s <== %s" %
                (self.token.cache_key, snip(str(data))))
         store_in_cache(
             self.token.cache_key.encode('utf8').encode('hex'),
             data.encode('utf8').encode('hex'))
Example #3
0
 def process(self):
     data = json.dumps(self.token.response)
     if self.token.request.method == "GET":
         if data != 'null':
             L.info("CacheSetter: storing in %s <== %s" % (self.token.cache_key,snip(str(data))))
             store_in_cache(self.token.cache_key,data)
Example #4
0
    def process(self):
        data = json.dumps(self.token.response)
	if data != 'null':
            L.info("CacheSetter: storing in %s <== %s" % (self.token.cache_key,snip(str(data))))
            store_in_cache(self.token.cache_key.encode('utf8').encode('hex'),data.encode('utf8').encode('hex'))