Documentation ¶
Index ¶
- type RedisClient
- func (r *RedisClient) GetBlock(height int64) ([]byte, error)
- func (r *RedisClient) GetDeltas(height int64) ([]byte, error)
- func (r *RedisClient) GetLocker() bool
- func (r *RedisClient) ReleaseLocker()
- func (r *RedisClient) ResetLatestHeightAfterUpload(height int64, upload func() bool) bool
- func (r *RedisClient) SetBlock(height int64, bytes []byte) error
- func (r *RedisClient) SetDeltas(height int64, bytes []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisClient ¶
type RedisClient struct {
// contains filtered or unexported fields
}
func NewRedisClient ¶
func (*RedisClient) GetLocker ¶ added in v1.0.1
func (r *RedisClient) GetLocker() bool
func (*RedisClient) ReleaseLocker ¶ added in v1.0.1
func (r *RedisClient) ReleaseLocker()
func (*RedisClient) ResetLatestHeightAfterUpload ¶ added in v1.0.1
func (r *RedisClient) ResetLatestHeightAfterUpload(height int64, upload func() bool) bool
return bool: if change the value of latest_height, need to upload
Click to show internal directories.
Click to hide internal directories.