123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import json
- try:
- import memcache
- mc = memcache.Client(['127.0.0.1:11211'], debug=0)
- except:
- mc = None
- import time
- start = time.time()
- if mc:
- while 1:
-
-
-
-
-
-
-
-
- x = mc.get("EXEC-INDEX")
- for i in json.loads(x):
- y = mc.get(i)
- print(i,len(y))
- break
- print(start- time.time())
- import sys
- nr=0
- if len(sys.argv) >= 2:
- try:
- nr=int(sys.argv[1])
- except:pass
- y = mc.get("EXEC-"+str(nr))
- if y:
- print(len(y))
- print(json.loads(y))
|