mirror of https://github.com/go-redis/redis.git
Consistent naming
This commit is contained in:
parent
0e62f5ec35
commit
11cf9400d5
|
@ -231,7 +231,7 @@ type Cmdable interface {
|
||||||
ClientKillByFilter(keys ...string) *IntCmd
|
ClientKillByFilter(keys ...string) *IntCmd
|
||||||
ClientList() *StringCmd
|
ClientList() *StringCmd
|
||||||
ClientPause(dur time.Duration) *BoolCmd
|
ClientPause(dur time.Duration) *BoolCmd
|
||||||
ClientId() *IntCmd
|
ClientID() *IntCmd
|
||||||
ConfigGet(parameter string) *SliceCmd
|
ConfigGet(parameter string) *SliceCmd
|
||||||
ConfigResetStat() *StatusCmd
|
ConfigResetStat() *StatusCmd
|
||||||
ConfigSet(parameter, value string) *StatusCmd
|
ConfigSet(parameter, value string) *StatusCmd
|
||||||
|
@ -2062,7 +2062,7 @@ func (c *cmdable) ClientPause(dur time.Duration) *BoolCmd {
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *cmdable) ClientId() *IntCmd {
|
func (c *cmdable) ClientID() *IntCmd {
|
||||||
cmd := NewIntCmd("client", "id")
|
cmd := NewIntCmd("client", "id")
|
||||||
c.process(cmd)
|
c.process(cmd)
|
||||||
return cmd
|
return cmd
|
||||||
|
|
|
@ -121,10 +121,10 @@ var _ = Describe("Commands", func() {
|
||||||
Expect(r.Val()).To(Equal(int64(0)))
|
Expect(r.Val()).To(Equal(int64(0)))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should ClientId", func() {
|
It("should ClientID", func() {
|
||||||
err := client.ClientId().Err()
|
err := client.ClientID().Err()
|
||||||
Expect(err).NotTo(HaveOccurred())
|
Expect(err).NotTo(HaveOccurred())
|
||||||
Expect(client.ClientId().Val()).To(BeNumerically(">=", 0))
|
Expect(client.ClientID().Val()).To(BeNumerically(">=", 0))
|
||||||
})
|
})
|
||||||
|
|
||||||
It("should ClientPause", func() {
|
It("should ClientPause", func() {
|
||||||
|
|
Loading…
Reference in New Issue