redis_cgi

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2021 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TTL = 0

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func NewRedisClient

func NewRedisClient(url, auth string, l log.Logger) *RedisClient

func (*RedisClient) GetBlock

func (r *RedisClient) GetBlock(height int64) ([]byte, error)

func (*RedisClient) GetDeltas

func (r *RedisClient) GetDeltas(height int64) ([]byte, error)

func (*RedisClient) SetBlock

func (r *RedisClient) SetBlock(height int64, bytes []byte) error

func (*RedisClient) SetDeltas

func (r *RedisClient) SetDeltas(height int64, bytes []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL