func SetAction(req *memcachep.MCRequest, res *memcachep.MCResponse) { res.Fatal = false data[req.Key] = string(req.Value) res.Status = memcachep.STORED }
func GetAction(req *memcachep.MCRequest, res *memcachep.MCResponse) { res.Fatal = false key := req.Key content := scanfile.MemScan(mf, &key) res.Value = []byte(string(content)) }
func GetAction(req *memcachep.MCRequest, res *memcachep.MCResponse) { res.Fatal = false res.Value = []byte(data[req.Key]) }