cold
This commit is contained in:
2
sandbox/isFiringRedis/config
Executable file
2
sandbox/isFiringRedis/config
Executable file
@@ -0,0 +1,2 @@
|
||||
save
|
||||
appendonly no
|
||||
BIN
sandbox/isFiringRedis/dump.rdb
Executable file
BIN
sandbox/isFiringRedis/dump.rdb
Executable file
Binary file not shown.
12
sandbox/isFiringRedis/main.py
Executable file
12
sandbox/isFiringRedis/main.py
Executable file
@@ -0,0 +1,12 @@
|
||||
def main(args) :
|
||||
import redis
|
||||
redis = redis.Redis()
|
||||
k = "key"
|
||||
v = "value"
|
||||
print(redis.get(k).decode())
|
||||
redis.set(k, v)
|
||||
print(redis.get(k).decode())
|
||||
|
||||
if __name__ == "__main__" :
|
||||
from sys import argv
|
||||
main(argv)
|
||||
Reference in New Issue
Block a user