MCPcopy Create free account
hub / github.com/distributedio/titan / init

Function init

command/init.go:6–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4var commands map[string]Desc
5
6func init() {
7 // txnCommands will be searched in multi/exec
8 txnCommands = map[string]TxnCommand{
9 // lists
10 "lindex": LIndex,
11 "linsert": LInsert,
12 "llen": LLen,
13 "lpop": LPop,
14 "lpush": LPush,
15 "lpushx": LPushx,
16 "lrange": LRange,
17 "lset": LSet,
18 "rpush": RPush,
19 "rpushx": RPushx,
20
21 // strings
22 "get": Get,
23 "set": Set,
24 "mget": MGet,
25 "mset": MSet,
26 "strlen": Strlen,
27 "append": Append,
28 "getset": GetSet,
29 "getrange": GetRange,
30 // "msetnx": MSetNx,
31 "setnx": SetNx,
32 "setex": SetEx,
33 "psetex": PSetEx,
34 "setrange": SetRange,
35 "setbit": SetBit,
36 // "bitop": BitOp,
37 // "bitfield": BitField,
38 "getbit": GetBit,
39 "bitpos": BitPos,
40 "bitcount": BitCount,
41 "incr": Incr,
42 "incrby": IncrBy,
43 "decr": Decr,
44 "decrby": DecrBy,
45 "incrbyfloat": IncrByFloat,
46
47 // keys
48 "type": Type,
49 "exists": Exists,
50 "keys": Keys,
51 "del": Delete,
52 "unlink": Delete, // unlink is the same as del in design
53 "expire": Expire,
54 "expireat": ExpireAt,
55 "pexpire": PExpire,
56 "pexpireat": PExpireAt,
57 "persist": Persist,
58 "ttl": TTL,
59 "pttl": PTTL,
60 "object": Object,
61 "scan": Scan,
62 "randomkey": RandomKey,
63 "touch": Touch,

Callers

nothing calls this directly

Calls 2

flagsFunction · 0.85
AutoCommitFunction · 0.85

Tested by

no test coverage detected