predis.mock

->MockClient

(->MockClient store)
Positional factory function for class predis.mock.MockClient.

->redis

(->redis)(->redis init-state)

err-arity

(err-arity cmd)

err-badint

err-srcdest

err-wrongtype

normalized-end-idx

(normalized-end-idx xs end)
Given an end idx which may be negative (indicating offset from the end)
or exceed the size of xs, return a normalized positive 0-based idx
See http://redis.io/commands/lrange

normalized-start-idx

(normalized-start-idx xs start)
Given an start idx which may be negative (indicating offset from the end)
or exceed the size of xs, return a normalized positive 0-based idx
See http://redis.io/commands/lrange