pub struct Cache { /* private fields */ }Implementations§
source§impl Cache
impl Cache
pub fn connect(config: JsonValue) -> Self
sourcepub fn set_message_queue(&mut self, key: &str, value: JsonValue) -> bool
pub fn set_message_queue(&mut self, key: &str, value: JsonValue) -> bool
设置消息队列
sourcepub fn get_message_queue(&mut self, key: &str) -> JsonValue
pub fn get_message_queue(&mut self, key: &str) -> JsonValue
获取消息队列
pub fn set_object(&mut self, key: &str, field: &str, value: JsonValue) -> bool
sourcepub fn get_object(&mut self, key: &str) -> JsonValue
pub fn get_object(&mut self, key: &str) -> JsonValue
获取哈希值