DB_REDIS = {
'host': localhost,
'port': 6379,
'password': 'pwd&&1',
'db': 1,
'decode_responses': True
}
python3使用時,給客戶端配置'decode_responses': True
就能保證存取的都是string,而不是想存string,結果卻是bytes!!!
DB_REDIS = {
'host': localhost,
'port': 6379,
'password': 'pwd&&1',
'db': 1,
'decode_responses': True
}
python3使用時,給客戶端配置'decode_responses': True
就能保證存取的都是string,而不是想存string,結果卻是bytes!!!
序言 Redis服務的監控程序很多,之前寫了一個RedisLive.但是免費的且一直沒有維護的就容易產生問題.(主要是版本兼容性,因爲長時間沒人更新麼) 除了CUP的使用,內存的使用.連接的數