Пример #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)
Пример #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'))
Пример #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)
Пример #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'))