This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lz4.frame | |
import redis | |
import sys | |
import zlib | |
if (len(sys.argv) != 3): | |
print("Usage: " + sys.argv[0] + " [set/get] [keyname]") | |
print("\tFor GET data should be piped to stdin") | |
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import lz4.frame | |
import redis | |
import sys | |
if (len(sys.argv) != 3): | |
print("Usage: " + sys.argv[0] + " [set/get] [keyname]") | |
print("\tFor GET data should be piped to stdin") | |
sys.exit(1) | |
r = redis.Redis(host='localhost', port=6379, db=0) |