redis

package
v1.2.2-dev.26 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MULTI = "MULTI"
	SET   = "SET"
	ZADD  = "ZADD"
)
View Source
const EventsCollection = "v2:event"
View Source
const ReadingsCollection = "v2:reading"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redisClient.Client
}

func NewClient

func NewClient(config db.Configuration, logger logger.LoggingClient) (*Client, errors.EdgeX)

func (*Client) AddEvent

func (c *Client) AddEvent(e model.Event) (model.Event, errors.EdgeX)

Add a new event

func (*Client) CloseSession

func (c *Client) CloseSession()

CloseSession closes the connections to Redis

Jump to

Keyboard shortcuts

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