MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / init

Function init

hashes.go:12–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10)
11
12func init() {
13 conf.AddWriteCommand("HSET", cmdHSET)
14 conf.AddReadCommand("HGET", cmdHGET)
15 conf.AddWriteCommand("HDEL", cmdHDEL)
16 conf.AddReadCommand("HEXISTS", cmdHEXISTS)
17 conf.AddReadCommand("HGETALL", cmdHGETALL)
18 conf.AddWriteCommand("HINCRBY", cmdHINCRBY)
19 conf.AddReadCommand("HKEYS", cmdHKEYS)
20 conf.AddReadCommand("HLEN", cmdHLEN)
21 conf.AddReadCommand("HMGET", cmdHMGET)
22 conf.AddWriteCommand("HMSET", cmdHMSET)
23 conf.AddWriteCommand("HSETNX", cmdHSETNX)
24 conf.AddReadCommand("HSTRLEN", cmdHSTRLEN)
25 conf.AddReadCommand("HVALS", cmdHVALS)
26
27 //IceFireDB special command
28 conf.AddWriteCommand("HCLEAR", cmdHCLEAR)
29 conf.AddWriteCommand("HMCLEAR", cmdHMCLEAR)
30 conf.AddWriteCommand("HEXPIRE", cmdHEXPIRE) //Timeout command HEXPIRE => HEXPIREAT
31 conf.AddWriteCommand("HEXPIREAT", cmdHEXPIREAT) //Timeout command
32 conf.AddReadCommand("HTTL", cmdHTTL)
33 // conf.AddWriteCommand("HPERSIST", cmdHPERSIST)
34 conf.AddReadCommand("HKEYEXISTS", cmdHKEYEXISTS)
35
36}
37
38func cmdHSET(m uhaha.Machine, args []string) (interface{}, error) {
39 if len(args) < 3 || (len(args))%2 != 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected