pub trait KVSClient: Send + Sync {
// Required methods
fn get(&self, key: &str) -> Option<String>;
fn set(&mut self, key: &str, value: String, ttl: Option<u64>) -> bool;
fn delete(&mut self, key: &str) -> bool;
}Expand description
KVSクライアント Redis等のKVS操作
KVSは文字列のみを扱う(primitive型)。 serialize/deserializeはState層で行う。