17 lines
280 B
Python
17 lines
280 B
Python
|
from redis import StrictRedis
|
||
|
|
||
|
import util
|
||
|
|
||
|
log = util.get_logger("db")
|
||
|
|
||
|
|
||
|
def store_message(msg):
|
||
|
"""
|
||
|
Store a message into Manticore
|
||
|
:param msg: dict
|
||
|
"""
|
||
|
log.debug(f"store_message() {msg}")
|
||
|
|
||
|
|
||
|
r = StrictRedis(unix_socket_path="/var/run/redis/redis.sock", db=0)
|