blob: 42a0f016aa76e82cc0629b5801036de797b831aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
package commands
import "redisClone/pkg/core"
func Exists(args []string, getShard func(k string) *core.Shard) interface{}{
_, exists := getShard(args[1]).Data[args[1]]
if exists {
return 1
} else {
return 0
}
}
|