Documentation ¶
Index ¶
- func CopyKey(conn redis.Conn, src, dst string) error
- func IsErrNoSuchKey(err error) bool
- type Version1
- func (v *Version1) CreateMirrorIndex(a *actions) (map[int]string, error)
- func (v *Version1) FixMirrorID(a *actions, m map[int]string) error
- func (v *Version1) RenameKeys(a *actions, m map[int]string) error
- func (v *Version1) RenameStats(a *actions, m map[int]string) error
- func (v *Version1) Upgrade() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrNoSuchKey ¶
IsErrNoSuchKey return true if error is of type "no such key"
Types ¶
type Version1 ¶
type Version1 struct {
Redis interfaces.Redis
}
func NewUpgraderV1 ¶
func NewUpgraderV1(redis interfaces.Redis) *Version1
NewUpgraderV1 upgrades the database from version 0 to 1
func (*Version1) CreateMirrorIndex ¶
Click to show internal directories.
Click to hide internal directories.