|
@@ -156,7 +156,7 @@ func InitEncryptionStruct() *EncryptionStruct {
|
|
|
log.Printf("InitEncryptionStruct save %s redis err %:v\n", byteArr, err)
|
|
|
return
|
|
|
}
|
|
|
- redis.Put("other", "sessionEncryption", string(byteArr), -1)
|
|
|
+ redis.Put("session", "sessionEncryption", string(byteArr), -1)
|
|
|
}()
|
|
|
return &encryStruct
|
|
|
}
|
|
@@ -194,6 +194,6 @@ func (e *EncryptionStruct) Flush() {
|
|
|
log.Printf("InitEncryptionStruct save %s redis err %:v\n", byteArr, err)
|
|
|
return
|
|
|
}
|
|
|
- redis.Put("other", "sessionEncryption", string(byteArr), -1)
|
|
|
+ redis.Put("session", "sessionEncryption", string(byteArr), -1)
|
|
|
}()
|
|
|
}
|